Skip to content
This repository has been archived by the owner on Dec 8, 2024. It is now read-only.

Commit

Permalink
fix(YouTube/Spoof streaming data): change cache size
Browse files Browse the repository at this point in the history
  • Loading branch information
inotia00 committed Sep 28, 2024
1 parent a19d320 commit 08ca502
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ public static String getLastSpoofedClientName() {

@GuardedBy("itself")
private static final Map<String, StreamingDataRequest> cache = Collections.synchronizedMap(
new LinkedHashMap<>(10) {
private static final int CACHE_LIMIT = 5;
new LinkedHashMap<>(40) {
private static final int CACHE_LIMIT = 20;

@Override
protected boolean removeEldestEntry(Entry eldest) {
Expand Down

0 comments on commit 08ca502

Please sign in to comment.