package memcached
- Alphabetic
- By Inheritance
- memcached
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- trait BaseClient[T] extends Closable
A friendly client to talk to a Memcached server.
A friendly client to talk to a Memcached server.
- See also
The Memcached protocol docs for details on the API.
- sealed trait CasResult extends AnyRef
The result of a check and set command.
The result of a check and set command.
- See also
- trait Client extends BaseClient[Buf]
- class ClientAdaptor[T] extends BaseClient[T] with Proxy
- class ConnectedClient extends Client
A Client connected to an individual Memcached server.
A Client connected to an individual Memcached server.
- Attributes
- protected
- case class Entry(value: Buf, expiry: Time, flags: Int) extends Product with Serializable
- case class GetResult extends Product with Serializable
- case class GetsResult(getResult: GetResult) extends Product with Serializable
- class Interpreter extends AnyRef
Evaluates a given Memcached operation and returns the result.
- class InterpreterService extends Service[Command, Response]
- abstract class JavaClient extends AnyRef
A Java-friendly memcached client.
- class JavaClientBase extends JavaClient
- class MockClient extends Client
Map-based mock client for testing
Map-based mock client for testing
- Note
this class now respects expiry times. If you want the old expiry-ignoring behavior, use MockClient.ignoresTtl()
- trait PartitionedClient extends Client
A partitioned client is a client that delegates to an actual client based on the key value.
A partitioned client is a client that delegates to an actual client based on the key value. Subclasses implement clientOf to choose the Client.
- class PoolingReadRepairClient extends Client
This class is designed to support replicated memcached setups.
This class is designed to support replicated memcached setups. It supports a limited subset of operations (just get, set, and delete).
- trait ProxyClient extends Client
- class ResultWithCAS extends AnyRef
- trait TwemcacheClient extends Client
- trait TwemcacheConnectedClient extends TwemcacheClient
Twemcache commands implementation.
Twemcache commands implementation. This trait can only be mixed into a memcache client implementation as extension.
- trait TwemcachePartitionedClient extends TwemcacheClient
Twemcache commands implementation for a partitioned client.
Twemcache commands implementation for a partitioned client. This trait can only be mixed into a PartitionedClient that is delegating twemcache compatible clients.
- trait ZookeeperStateMonitor extends AnyRef
A zk monitor trait that assists with monitoring a given zk path for any node data change, in which the provided zk data handling implementation will be invoked.
A zk monitor trait that assists with monitoring a given zk path for any node data change, in which the provided zk data handling implementation will be invoked.
This monitor will maintain a queue so that every work item triggered by zk event will be processed in an order with a back off policy. It also set-up a zookeeper connection watcher by default to re-set the data change watcher even during zk re-connect.
The monitor will set-up all watcher properly kick off the loop to process future event; you can also invoke loadZKData() in your class anytime to force reading zk data and apply it.
Example use cases are: - zookeeper based CachePoolCluster uses this to monitor cache pool members change - zookeeper based MigrationClient uses this ot monitor migration state transitioning
Value Members
- object CasResult
- object Client
- object GetResult extends Serializable
- object KeyValidation
Cache command key validation logic.
Cache command key validation logic. Valid keys are: - not null, - not empty, - not longer than 250 bytes, and - do not contain any of the invalid characters
['\n', '\r', ' ', '\u0000']
.All cache commands accepting key/keys should test those keys with these tools.
- object MockClient
- object TwemcacheClient
- object ZookeeperStateMonitor