Class

shade.memcached

Configuration

Related Doc: package memcached

Permalink

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

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

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Configuration
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new 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 = ...)

    Permalink

    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

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. val addresses: String

    Permalink

    the list of server addresses, separated by space, e.g.

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

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. val authentication: Option[AuthConfiguration]

    Permalink

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

  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. val failureMode: FailureMode.Value

    Permalink

    specifies failure mode for SpyMemcached when connections drop:

    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
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. val hashAlgorithm: HashAlgorithm

    Permalink

    the method for hashing a cache key for server selection

  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. val keysPrefix: Option[String]

    Permalink

    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.

  15. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  18. val opQueueFactory: Option[OperationQueueFactory]

    Permalink

    can be used to customize the operations queue, i.e.

    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.

  19. val operationTimeout: FiniteDuration

    Permalink

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

  20. val protocol: Protocol.Value

    Permalink

    can be either Text or Binary

  21. val readQueueFactory: Option[OperationQueueFactory]

    Permalink

    can be used to customize the read queue, i.e.

    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.

  22. val shouldOptimize: Boolean

    Permalink

    If true, optimization will collapse multiple sequential get ops.

  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. val writeQueueFactory: Option[OperationQueueFactory]

    Permalink

    can be used to customize the write queue, i.e.

    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.

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped