org.talares.api

cache

package cache

Visibility
  1. Public
  2. All

Type Members

  1. case class AutoUpdateCache(get: (Any) ⇒ Option[Any], put: (Any, Any) ⇒ Unit) extends Cache with Product with Serializable

    Leverages the given functions get and set to either retrieve or store objects from and into the cache respectively.

    Leverages the given functions get and set to either retrieve or store objects from and into the cache respectively.

    Always returns a cached instance of a specific item once it has entered the cache once.

    A configurable amount of times will be accepted for accessing a specific item in the cache, before this strategy issues an update of said item.

    get

    function which can be used to retrieve object from the cache with a given key

    put

    function which can be used to store objects in the cache with a given key

  2. trait Cache extends AnyRef

    Trait whose instances allow the library to make use of a given cache implementation.

    Trait whose instances allow the library to make use of a given cache implementation. This leaves the user free to supply a cache solution of his own choosing.

    An instance of one of the implementing types should be provided at library instantiation. When no cache instance is provided the NoCache strategy is assumed.

    Since

    0.1.0

  3. case class CacheItem(value: Any, timesAccessed: Int = 0) extends Product with Serializable

    Container class holding values to be cached.

    Container class holding values to be cached. These values are accompanied by meta data, supplying additional information about an item in regards to the cache.

    Since

    0.1.0

  4. case class NoCache() extends Cache with Product with Serializable

    Does not apply any caching.

  5. case class SimpleCache(get: (Any) ⇒ Option[Any], put: (Any, Any) ⇒ Unit) extends Cache with Product with Serializable

    Leverages the given functions get and set to either retrieve or store objects from and into the cache respectively.

    Leverages the given functions get and set to either retrieve or store objects from and into the cache respectively.

    Does not add any additional caching logic and as such honors the given cache's configuration.

    get

    function which can be used to retrieve object from the cache with a given key

    put

    function which can be used to store objects in the cache with a given key

Value Members

  1. package actors

Ungrouped