Skip to content

Commit

Permalink
refactor: Lru cache provider
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkAfCod authored and GrapeBaBa committed Oct 21, 2024
1 parent 155be90 commit b757922
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/main/java/io/optimism/utilities/LruCacheProvider.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package io.optimism.utilities;

import com.google.common.cache.Cache;
import com.google.common.cache.CacheBuilder;

public class LruCacheProvider {

static <K, V> Cache<K, V> create() {
return CacheBuilder.newBuilder().maximumSize(1000L).build();
}
}

0 comments on commit b757922

Please sign in to comment.