shade.memcached

Configuration

case class Configuration(addresses: String, authentication: Option[AuthConfiguration] = scala.None, keysPrefix: Option[String] = scala.None, protocol: Protocol.Value = Protocol.Binary, failureMode: FailureMode.Value = FailureMode.Retry, operationTimeout: FiniteDuration = ..., shouldOptimize: Boolean = false, opQueueFactory: Option[OperationQueueFactory] = scala.None, writeQueueFactory: Option[OperationQueueFactory] = scala.None, readQueueFactory: Option[OperationQueueFactory] = scala.None, hashAlgorithm: HashAlgorithm = ..., locator: Locator = ...) 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

locator

locator selection, by default ARRAY_MOD

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
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Configuration(addresses: String, authentication: Option[AuthConfiguration] = scala.None, keysPrefix: Option[String] = scala.None, protocol: Protocol.Value = Protocol.Binary, failureMode: FailureMode.Value = FailureMode.Retry, operationTimeout: FiniteDuration = ..., shouldOptimize: Boolean = false, opQueueFactory: Option[OperationQueueFactory] = scala.None, writeQueueFactory: Option[OperationQueueFactory] = scala.None, readQueueFactory: Option[OperationQueueFactory] = scala.None, hashAlgorithm: HashAlgorithm = ..., locator: Locator = ...)

    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

    locator

    locator selection, by default ARRAY_MOD

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. val addresses: String

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

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

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. val authentication: Option[AuthConfiguration]

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

  9. def clone(): AnyRef

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

    Definition Classes
    AnyRef
  11. val failureMode: FailureMode.Value

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

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

    Definition Classes
    AnyRef → Any
  14. val hashAlgorithm: HashAlgorithm

    the method for hashing a cache key for server selection

  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. val keysPrefix: Option[String]

    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.

  17. val locator: Locator

    locator selection, by default ARRAY_MOD

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

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

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

    Definition Classes
    AnyRef
  21. val opQueueFactory: Option[OperationQueueFactory]

    can be used to customize the operations queue, i.

    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.

  22. val operationTimeout: FiniteDuration

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

  23. val protocol: Protocol.Value

    can be either Text or Binary

  24. val readQueueFactory: Option[OperationQueueFactory]

    can be used to customize the read queue, i.

    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.

  25. val shouldOptimize: Boolean

    If true, optimization will collapse multiple sequential get ops.

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

    Definition Classes
    AnyRef
  27. final def wait(): Unit

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

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

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

    can be used to customize the write queue, i.

    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