com.twitter.storehaus

cache

package cache

Visibility
  1. Public
  2. All

Type Members

  1. class Atomic[T <: AnyRef] extends AnyRef

  2. trait Cache[K, V] extends AnyRef

    Immutable Cache trait for use with Storehaus stores.

  3. class FilteredMutableCache[K, V] extends MutableCache[K, V]

    MutableCache that applies a filter to each value.

  4. class JMapCache[K, V] extends MutableCache[K, V]

    Returns a MutableCache instance backed by the supplied java.

  5. class LRUCache[K, V] extends Cache[K, V]

  6. class MapCache[K, V] extends Cache[K, V]

  7. class Memoize1[-T1, +R] extends (T1) ⇒ R

    Returns an instance of Function1 memoized using the supplied mutable cache.

  8. class Memoize10[-T1, -T2, -T3, -T4, -T5, -T6, -T7, -T8, -T9, -T10, +R] extends (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10) ⇒ R

    Returns an instance of Function10 memoized using the supplied mutable cache.

  9. class Memoize11[-T1, -T2, -T3, -T4, -T5, -T6, -T7, -T8, -T9, -T10, -T11, +R] extends (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) ⇒ R

    Returns an instance of Function11 memoized using the supplied mutable cache.

  10. class Memoize12[-T1, -T2, -T3, -T4, -T5, -T6, -T7, -T8, -T9, -T10, -T11, -T12, +R] extends (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12) ⇒ R

    Returns an instance of Function12 memoized using the supplied mutable cache.

  11. class Memoize13[-T1, -T2, -T3, -T4, -T5, -T6, -T7, -T8, -T9, -T10, -T11, -T12, -T13, +R] extends (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13) ⇒ R

    Returns an instance of Function13 memoized using the supplied mutable cache.

  12. class Memoize14[-T1, -T2, -T3, -T4, -T5, -T6, -T7, -T8, -T9, -T10, -T11, -T12, -T13, -T14, +R] extends (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14) ⇒ R

    Returns an instance of Function14 memoized using the supplied mutable cache.

  13. class Memoize15[-T1, -T2, -T3, -T4, -T5, -T6, -T7, -T8, -T9, -T10, -T11, -T12, -T13, -T14, -T15, +R] extends (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15) ⇒ R

    Returns an instance of Function15 memoized using the supplied mutable cache.

  14. class Memoize16[-T1, -T2, -T3, -T4, -T5, -T6, -T7, -T8, -T9, -T10, -T11, -T12, -T13, -T14, -T15, -T16, +R] extends (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16) ⇒ R

    Returns an instance of Function16 memoized using the supplied mutable cache.

  15. class Memoize17[-T1, -T2, -T3, -T4, -T5, -T6, -T7, -T8, -T9, -T10, -T11, -T12, -T13, -T14, -T15, -T16, -T17, +R] extends (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17) ⇒ R

    Returns an instance of Function17 memoized using the supplied mutable cache.

  16. class Memoize18[-T1, -T2, -T3, -T4, -T5, -T6, -T7, -T8, -T9, -T10, -T11, -T12, -T13, -T14, -T15, -T16, -T17, -T18, +R] extends (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18) ⇒ R

    Returns an instance of Function18 memoized using the supplied mutable cache.

  17. class Memoize19[-T1, -T2, -T3, -T4, -T5, -T6, -T7, -T8, -T9, -T10, -T11, -T12, -T13, -T14, -T15, -T16, -T17, -T18, -T19, +R] extends (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19) ⇒ R

    Returns an instance of Function19 memoized using the supplied mutable cache.

  18. class Memoize2[-T1, -T2, +R] extends (T1, T2) ⇒ R

    Returns an instance of Function2 memoized using the supplied mutable cache.

  19. class Memoize20[-T1, -T2, -T3, -T4, -T5, -T6, -T7, -T8, -T9, -T10, -T11, -T12, -T13, -T14, -T15, -T16, -T17, -T18, -T19, -T20, +R] extends (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20) ⇒ R

    Returns an instance of Function20 memoized using the supplied mutable cache.

  20. class Memoize21[-T1, -T2, -T3, -T4, -T5, -T6, -T7, -T8, -T9, -T10, -T11, -T12, -T13, -T14, -T15, -T16, -T17, -T18, -T19, -T20, -T21, +R] extends (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21) ⇒ R

    Returns an instance of Function21 memoized using the supplied mutable cache.

  21. class Memoize22[-T1, -T2, -T3, -T4, -T5, -T6, -T7, -T8, -T9, -T10, -T11, -T12, -T13, -T14, -T15, -T16, -T17, -T18, -T19, -T20, -T21, -T22, +R] extends (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22) ⇒ R

    Returns an instance of Function22 memoized using the supplied mutable cache.

  22. class Memoize3[-T1, -T2, -T3, +R] extends (T1, T2, T3) ⇒ R

    Returns an instance of Function3 memoized using the supplied mutable cache.

  23. class Memoize4[-T1, -T2, -T3, -T4, +R] extends (T1, T2, T3, T4) ⇒ R

    Returns an instance of Function4 memoized using the supplied mutable cache.

  24. class Memoize5[-T1, -T2, -T3, -T4, -T5, +R] extends (T1, T2, T3, T4, T5) ⇒ R

    Returns an instance of Function5 memoized using the supplied mutable cache.

  25. class Memoize6[-T1, -T2, -T3, -T4, -T5, -T6, +R] extends (T1, T2, T3, T4, T5, T6) ⇒ R

    Returns an instance of Function6 memoized using the supplied mutable cache.

  26. class Memoize7[-T1, -T2, -T3, -T4, -T5, -T6, -T7, +R] extends (T1, T2, T3, T4, T5, T6, T7) ⇒ R

    Returns an instance of Function7 memoized using the supplied mutable cache.

  27. class Memoize8[-T1, -T2, -T3, -T4, -T5, -T6, -T7, -T8, +R] extends (T1, T2, T3, T4, T5, T6, T7, T8) ⇒ R

    Returns an instance of Function8 memoized using the supplied mutable cache.

  28. class Memoize9[-T1, -T2, -T3, -T4, -T5, -T6, -T7, -T8, -T9, +R] extends (T1, T2, T3, T4, T5, T6, T7, T8, T9) ⇒ R

    Returns an instance of Function9 memoized using the supplied mutable cache.

  29. trait MutableCache[K, V] extends AnyRef

  30. class MutableFromImmutableCache[K, V] extends MutableCache[K, V]

    A Mutable cache generated by wrapping an immutable cache.

  31. class MutableLRUCache[K, V] extends JMapCache[K, V]

  32. class MutableMapCache[K, V] extends MutableCache[K, V]

    MutableCache backed by a scala mutable Map.

  33. class TTLCache[K, V] extends Cache[K, (Long, V)]

Value Members

  1. object Atomic extends AnyRef

  2. object Cache extends AnyRef

    Companion object to Cache.

  3. object JMapCache extends AnyRef

  4. object LRUCache extends AnyRef

    "map" is the backing store used to hold key -> (index,value) pairs.

  5. object MapCache extends AnyRef

    Basic cache implementation using an immutable backing map.

  6. object Memoize extends AnyRef

    Memoize supplies a number of functions for generating memoized versions of Scala's functions using a MutableCache instance.

  7. object MutableCache extends AnyRef

  8. object MutableLRUCache extends AnyRef

    Creates a mutable LRU cache based on an insertion-order java.

  9. object MutableMapCache extends AnyRef

  10. object TTLCache extends AnyRef

    Immutable implementation of a *T*ime *T*o *L*ive cache.