Package 

Object LruCacheProvider

    • Method Summary

      Modifier and Type Method Description
      final <T extends Any> LruCache<String, T> provide(Integer maxSize) Creates and returns an LruCache instance with the specified maximum size.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.