Class/Object

model.persistence

SoftCache

Related Docs: object SoftCache | package persistence

Permalink

class SoftCache[Key, Value] extends AbstractCache[Key, Value]

Features soft values that might expire

Source
Caches.scala
Linear Supertypes
AbstractCache[Key, Value], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SoftCache
  2. AbstractCache
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SoftCache(concurrencyLevel: Int = 4, timeoutMinutes: Int = 5)(implicit executionContext: CacheExecutionContext)

    Permalink

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. val concurrencyLevel: Int

    Permalink
    Definition Classes
    SoftCacheAbstractCache
  7. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  9. implicit val executionContext: CacheExecutionContext

    Permalink
    Definition Classes
    SoftCacheAbstractCache
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def get(key: Key): Option[Value]

    Permalink

    Returns Some(value associated with key in this cache), or None if there is no cached value for key.

    Returns Some(value associated with key in this cache), or None if there is no cached value for key.

    Definition Classes
    AbstractCache
    Annotations
    @inline()
  12. def getAll: List[Value]

    Permalink
    Definition Classes
    AbstractCache
    Annotations
    @inline()
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def getWithDefault(key: Key, defaultValue: ⇒ Value): Value

    Permalink

    Returns the value associated with key in this cache, obtaining that value from defaultValue if necessary.

    Returns the value associated with key in this cache, obtaining that value from defaultValue if necessary. No observable state associated with this cache is modified until loading completes. This method provides a simple substitute for the conventional "if cached, return; otherwise create, cache and return" pattern.

    Warning: defaultValue must not evaluate to null.

    Definition Classes
    AbstractCache
    Annotations
    @inline()
  15. def getWithDefaultAsync(key: Key, defaultValue: ⇒ Value): Future[Value]

    Permalink

    Like getWithDefault, but useful when defaultValue is expensive to compute

    Like getWithDefault, but useful when defaultValue is expensive to compute

    Definition Classes
    AbstractCache
    Annotations
    @inline()
  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  21. def put(key: Key, value: Value): AbstractCache[Key, Value]

    Permalink

    Associates value with key in this cache.

    Associates value with key in this cache. If the cache previously contained a value associated with key, the old value is atomically replaced by value.

    Definition Classes
    AbstractCache
    Annotations
    @inline()
  22. def putAsync(key: Key, value: ⇒ Value): Future[AbstractCache[Key, Value]]

    Permalink

    Like put, but useful when value is expensive to compute

    Like put, but useful when value is expensive to compute

    Definition Classes
    AbstractCache
    Annotations
    @inline()
  23. def putGet(key: Key, value: Value): AbstractCache[Key, Value]

    Permalink

    Like put, but also returns value

    Like put, but also returns value

    Definition Classes
    AbstractCache
    Annotations
    @inline()
  24. def putGetAsync(key: Key, value: ⇒ Value): Future[AbstractCache[Key, Value]]

    Permalink

    Like putGet, but useful when value is expensive to compute

    Like putGet, but useful when value is expensive to compute

    Definition Classes
    AbstractCache
    Annotations
    @inline()
  25. def remove(key: Key): AbstractCache[Key, Value]

    Permalink

    Removes key from the underlying cache

    Removes key from the underlying cache

    Definition Classes
    AbstractCache
    Annotations
    @inline()
  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  27. val timeoutMinutes: Int

    Permalink
    Definition Classes
    SoftCacheAbstractCache
  28. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  29. lazy val underlying: Cache[AnyRef, AnyRef]

    Permalink

    The underlying Google Guava Cache instance

    The underlying Google Guava Cache instance

    Definition Classes
    SoftCacheAbstractCache
  30. final def wait(): Unit

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

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

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

Inherited from AbstractCache[Key, Value]

Inherited from AnyRef

Inherited from Any

Ungrouped