Class/Object

com.twitter.storehaus.cache

LIRSCache

Related Docs: object LIRSCache | package cache

Permalink

class LIRSCache[K, V] extends Cache[K, V]

Linear Supertypes
Cache[K, V], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LIRSCache
  2. Cache
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new LIRSCache(lirsStacks: LIRSStacks[K], backingMap: Map[K, V])

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(kv: (K, V)): Cache[K, V]

    Permalink
    Definition Classes
    Cache
  4. def -(k: K): Cache[K, V]

    Permalink
    Definition Classes
    Cache
  5. def --(ks: Set[K]): Cache[K, V]

    Permalink
    Definition Classes
    Cache
  6. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def contains(k: K): Boolean

    Permalink

    Returns true if the cache contains a value for the supplied key, false otherwise.

    Returns true if the cache contains a value for the supplied key, false otherwise.

    Definition Classes
    Cache
  10. def empty: Cache[K, V]

    Permalink

    Returns an empty version of this specific cache implementation.

    Returns an empty version of this specific cache implementation.

    Definition Classes
    LIRSCacheCache
  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  13. def evict(k: K): (Option[V], Cache[K, V])

    Permalink
    Definition Classes
    LIRSCacheCache
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def get(k: K): Option[V]

    Permalink

    Returns an option containing the value stored for the supplied key or None if the key is not present in the cache.

    Returns an option containing the value stored for the supplied key or None if the key is not present in the cache. (A call to get should not change the underlying cache in any way.)

    Definition Classes
    LIRSCacheCache
  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  18. def hit(k: K): Cache[K, V]

    Permalink
    Definition Classes
    LIRSCacheCache
  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. def iterator: Iterator[(K, V)]

    Permalink

    Returns an iterator of all key-value pairs inside of this cache.

    Returns an iterator of all key-value pairs inside of this cache.

    Definition Classes
    LIRSCacheCache
  21. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. def occupancy: Int

    Permalink

    Returns the amount of elements in the cache (i.e.

    Returns the amount of elements in the cache (i.e. its occupancy)

    Definition Classes
    LIRSCacheCache
  25. def put(kv: (K, V)): (Set[K], Cache[K, V])

    Permalink
    Definition Classes
    LIRSCacheCache
  26. def seed(m: Map[K, V]): Cache[K, V]

    Permalink
    Definition Classes
    Cache
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  28. def toMap: Map[K, V]

    Permalink
    Definition Classes
    Cache
  29. def toMutable(exhaustFn: (Set[K]) ⇒ Unit = _ => ()): MutableCache[K, V]

    Permalink
    Definition Classes
    Cache
  30. def toString(): String

    Permalink
    Definition Classes
    LIRSCache → AnyRef → Any
  31. def touch(k: K, v: ⇒ V): Cache[K, V]

    Permalink

    Touches the cache with the supplied key.

    Touches the cache with the supplied key. If the key is present in the cache, the cache calls "hit" on the key. If the key is missing, the cache adds fn(k) to itself.

    Definition Classes
    Cache
  32. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Cache[K, V]

Inherited from AnyRef

Inherited from Any

Ungrouped