Package

eu.shiftforward.apso

caching

Permalink

package caching

Visibility
  1. Public
  2. All

Type Members

  1. trait Cache[V] extends AnyRef

    Permalink

    General interface implemented by all spray cache implementations.

  2. final class ExpiringLruCache[V] extends Cache[V]

    Permalink

    A thread-safe implementation of eu.shiftforward.apso.caching.Cache.

    A thread-safe implementation of eu.shiftforward.apso.caching.Cache. The cache has a defined maximum number of entries is can store. After the maximum capacity has been reached new entries cause old ones to be evicted in a last-recently-used manner, i.e. the entries that haven't been accessed for the longest time are evicted first. In addition this implementation optionally supports time-to-live as well as time-to-idle expiration. The former provides an upper limit to the time period an entry is allowed to remain in the cache while the latter limits the maximum time an entry is kept without having been accessed. If both values are non-zero the time-to-live has to be strictly greater than the time-to-idle. Note that expired entries are only evicted upon next access (or by being thrown out by the capacity constraint), so they might prevent gargabe collection of their values for longer than expected.

  3. final class SimpleLruCache[V] extends Cache[V]

    Permalink

    A thread-safe implementation of eu.shiftforward.apso.caching.Cache.

    A thread-safe implementation of eu.shiftforward.apso.caching.Cache. The cache has a defined maximum number of entries it can store. After the maximum capacity is reached new entries cause old ones to be evicted in a last-recently-used manner, i.e. the entries that haven't been accessed for the longest time are evicted first.

  4. class ValueMagnet[V] extends AnyRef

    Permalink

Value Members

  1. object LruCache

    Permalink
  2. object ValueMagnet

    Permalink

Ungrouped