-
public class LruCacheProviderObject providing a utility function to create an LruCache instance.
-
-
Field Summary
Fields Modifier and Type Field Description public final static LruCacheProviderINSTANCE
-
Method Summary
-
-
Method Detail
-
provide
final <T extends Any> LruCache<String, T> provide(Integer maxSize)
Creates and returns an LruCache instance with the specified maximum size.
The LruCache.sizeOf function is used to calculate the size of each cached object in kilobytes.
- Parameters:
maxSize- The maximum size of the cache in kilobytes.
-
-
-
-