Package

shade

memcached

Permalink

package memcached

Visibility
  1. Public
  2. All

Type Members

  1. case class AuthConfiguration(username: String, password: String) extends Product with Serializable

    Permalink
  2. trait BaseCodecs extends AnyRef

    Permalink
  3. trait Codec[T] extends AnyRef

    Permalink

    Represents a type class that needs to be implemented for serialization/deserialization to work.

    Represents a type class that needs to be implemented for serialization/deserialization to work.

    Annotations
    @implicitNotFound( ... )
  4. case class Configuration(addresses: String, authentication: Option[AuthConfiguration] = None, keysPrefix: Option[String] = None, protocol: Protocol.Value = Protocol.Binary, failureMode: FailureMode.Value = FailureMode.Retry, operationTimeout: FiniteDuration = 1.second, shouldOptimize: Boolean = false, opQueueFactory: Option[OperationQueueFactory] = None, writeQueueFactory: Option[OperationQueueFactory] = None, readQueueFactory: Option[OperationQueueFactory] = None, hashAlgorithm: HashAlgorithm = ...) extends Product with Serializable

    Permalink

    Represents the Memcached connection configuration.

    Represents the Memcached connection configuration.

    addresses

    the list of server addresses, separated by space, e.g. "192.168.1.3:11211 192.168.1.4:11211"

    authentication

    the authentication credentials (if None, then no authentication is performed)

    keysPrefix

    is the prefix to be added to used keys when storing/retrieving values, useful for having the same Memcached instances used by several applications to prevent them from stepping over each other.

    protocol

    can be either Text or Binary

    failureMode

    specifies failure mode for SpyMemcached when connections drop:

    • in Retry mode a connection is retried until it recovers.
    • in Cancel mode all operations are cancelled
    • in Redistribute mode, the client tries to redistribute operations to other nodes
    operationTimeout

    is the default operation timeout; When the limit is reached, the Future responses finish with Failure(TimeoutException)

    shouldOptimize

    If true, optimization will collapse multiple sequential get ops.

    opQueueFactory

    can be used to customize the operations queue, i.e. the queue of operations waiting to be processed by SpyMemcached. If None, the default SpyMemcached implementation (a bounded ArrayBlockingQueue) is used.

    writeQueueFactory

    can be used to customize the write queue, i.e. the queue of operations waiting to be sent to Memcached by SpyMemcached. If None, the default SpyMemcached implementation (an unbounded LinkedBlockingQueue) is used.

    readQueueFactory

    can be used to customize the read queue, i.e. the queue of Memcached responses waiting to be processed by SpyMemcached. If None, the default SpyMemcached implementation (an unbounded LinkedBlockingQueue) is used.

    hashAlgorithm

    the method for hashing a cache key for server selection

  5. class FakeMemcached extends Memcached

    Permalink
  6. trait GenericCodec extends AnyRef

    Permalink
  7. class GenericCodecObjectInputStream extends ObjectInputStream

    Permalink

    Object input stream which tries the thread local class loader.

    Object input stream which tries the thread local class loader.

    Thread Local class loader is used by SBT to avoid polluting system class loader when running different tasks.

    This allows deserialization of classes from sub-projects during something like Play's test/run modes.

  8. trait Memcached extends Closeable

    Permalink
  9. trait MemcachedCodecs extends BaseCodecs with GenericCodec

    Permalink
  10. class MemcachedImpl extends Memcached

    Permalink

    Memcached client implementation based on SpyMemcached.

    Memcached client implementation based on SpyMemcached.

    See the parent trait (Cache) for API docs.

Value Members

  1. object Codec extends BaseCodecs

    Permalink
  2. object FailureMode extends Enumeration

    Permalink
  3. object Memcached

    Permalink
  4. object MemcachedCodecs extends MemcachedCodecs

    Permalink
  5. object Protocol extends Enumeration

    Permalink
  6. package internals

    Permalink

Ungrouped