Package

com.twitter.cache

caffeine

Permalink

package caffeine

Visibility
  1. Public
  2. All

Type Members

  1. class CaffeineCache[K, V] extends ConcurrentMapCache[K, V]

    Permalink

    A com.twitter.cache.FutureCache backed by a com.github.benmanes.caffeine.cache.Cache.

    A com.twitter.cache.FutureCache backed by a com.github.benmanes.caffeine.cache.Cache.

    Any correct implementation should make sure that you evict failed results, and don't interrupt the underlying request that has been fired off. EvictingCache and Future#interrupting are useful tools for building correct FutureCaches. A reference implementation for caching the results of an asynchronous function with a caffeine Cache can be found at CaffeineCache$.fromCache.

  2. class LoadingFutureCache[K, V] extends CaffeineCache[K, V] with (K) ⇒ Future[V]

    Permalink

    A com.twitter.cache.FutureCache backed by a com.github.benmanes.caffeine.cache.LoadingCache.

    A com.twitter.cache.FutureCache backed by a com.github.benmanes.caffeine.cache.LoadingCache.

    Any correct implementation should make sure that you evict failed results, and don't interrupt the underlying request that has been fired off. EvictingCache and Future#interrupting are useful tools for building correct FutureCaches. A reference implementation for caching the results of an asynchronous function with a caffeine LoadingCache can be found at CaffeineCache$.fromLoadingCache.

Value Members

  1. object CaffeineCache

    Permalink

Ungrouped