com.twitter.finagle.memcached

ClientAdaptor

class ClientAdaptor[T] extends BaseClient[T] with Proxy

Linear Supertypes
Proxy, BaseClient[T], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ClientAdaptor
  2. Proxy
  3. BaseClient
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ClientAdaptor(self: Client, bijection: Bijection[ChannelBuffer, T])

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. def add(key: String, flags: Int, expiry: Time, value: T): Future[Boolean]

    Store a key but only if it doesn't already exist on the server.

    Store a key but only if it doesn't already exist on the server.

    returns

    true if stored, false if not stored

    Definition Classes
    ClientAdaptorBaseClient
  7. def add(key: String, value: T): Future[Boolean]

    Store a key but only if it doesn't already exist on the server.

    Store a key but only if it doesn't already exist on the server.

    returns

    true if stored, false if not stored

    Definition Classes
    BaseClient
  8. def append(key: String, flags: Int, expiry: Time, value: T): Future[Boolean]

    Append bytes to the end of an existing key.

    Append bytes to the end of an existing key. If the key doesn't exist, the operation has no effect.

    returns

    true if stored, false if not stored

    Definition Classes
    ClientAdaptorBaseClient
  9. def append(key: String, value: T): Future[Boolean]

    Append a set of bytes to the end of an existing key.

    Append a set of bytes to the end of an existing key. If the key doesn't exist, the operation has no effect.

    returns

    true if stored, false if not stored

    Definition Classes
    BaseClient
  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def cas(key: String, flags: Int, expiry: Time, value: T, casUnique: ChannelBuffer): Future[Boolean]

    Perform a CAS operation on the key, only if the value has not changed since the value was last retrieved, and casUnique extracted from a gets command.

    Perform a CAS operation on the key, only if the value has not changed since the value was last retrieved, and casUnique extracted from a gets command. We treat the "cas unique" token opaquely, but in reality it is a string-encoded u64.

    returns

    true if replaced, false if not

    Definition Classes
    ClientAdaptorBaseClient
  12. def cas(key: String, value: T, casUnique: ChannelBuffer): Future[Boolean]

    Perform a CAS operation on the key, only if the value has not changed since the value was last retrieved, and casUnique extracted from a gets command.

    Perform a CAS operation on the key, only if the value has not changed since the value was last retrieved, and casUnique extracted from a gets command. We treat the "cas unique" token opaquely, but in reality it is a string-encoded u64.

    returns

    true if replaced, false if not

    Definition Classes
    BaseClient
  13. def channelBufferToType(a: ChannelBuffer): T

    Definition Classes
    ClientAdaptorBaseClient
  14. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  15. def decr(key: String, delta: Long): Future[Option[Long]]

    Decrement a key.

    Decrement a key. Interpret the value as an JLong if it is parsable. This operation has no effect if there is no value there already.

    Definition Classes
    ClientAdaptorBaseClient
  16. def decr(key: String): Future[Option[Long]]

    Definition Classes
    BaseClient
  17. def delete(key: String): Future[Boolean]

    Remove a key.

    Remove a key.

    returns

    true if deleted, false if not found

    Definition Classes
    ClientAdaptorBaseClient
  18. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. def equals(that: Any): Boolean

    Definition Classes
    Proxy → Any
  20. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  21. def get(keys: Iterable[String]): Future[Map[String, T]]

    Get a set of keys from the server.

    Get a set of keys from the server.

    returns

    a Map[String, T] of all of the keys that the server had.

    Definition Classes
    BaseClient
  22. def get(key: String): Future[Option[T]]

    Get a key from the server.

    Get a key from the server.

    Definition Classes
    BaseClient
  23. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  24. def getResult(keys: Iterable[String]): Future[GetResult]

    Get a set of keys from the server.

    Get a set of keys from the server. Returns a Future[GetResult] that encapsulates hits, misses and failures.

    Definition Classes
    ClientAdaptorBaseClient
  25. def gets(keys: Iterable[String]): Future[Map[String, (T, ChannelBuffer)]]

    Get a set of keys from the server, together with a "cas unique" token.

    Get a set of keys from the server, together with a "cas unique" token. The token is treated opaquely by the memcache client but is in reality a string-encoded u64.

    returns

    a Map[String, (T, ChannelBuffer)] of all the keys the server had, together with their "cas unique" token

    Definition Classes
    BaseClient
  26. def gets(key: String): Future[Option[(T, ChannelBuffer)]]

    Get a key from the server, with a "cas unique" token.

    Get a key from the server, with a "cas unique" token. The token is treated opaquely by the memcache client but is in reality a string-encoded u64.

    Definition Classes
    BaseClient
  27. def getsResult(keys: Iterable[String]): Future[GetsResult]

    Get a set of keys from the server.

    Get a set of keys from the server. Returns a Future[GetsResult] that encapsulates hits, misses and failures. This variant includes the casToken from memcached.

    Definition Classes
    ClientAdaptorBaseClient
  28. def hashCode(): Int

    Definition Classes
    Proxy → Any
  29. def incr(key: String, delta: Long): Future[Option[Long]]

    Increment a key.

    Increment a key. Interpret the value as an Long if it is parsable. This operation has no effect if there is no value there already.

    Definition Classes
    ClientAdaptorBaseClient
  30. def incr(key: String): Future[Option[Long]]

    Definition Classes
    BaseClient
  31. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  32. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  35. def prepend(key: String, flags: Int, expiry: Time, value: T): Future[Boolean]

    Prepend bytes to the beginning of an existing key.

    Prepend bytes to the beginning of an existing key. If the key doesn't exist, the operation has no effect.

    returns

    true if stored, false if not stored

    Definition Classes
    ClientAdaptorBaseClient
  36. def prepend(key: String, value: T): Future[Boolean]

    Prepend a set of bytes to the beginning of an existing key.

    Prepend a set of bytes to the beginning of an existing key. If the key doesn't exist, the operation has no effect.

    returns

    true if stored, false if not stored

    Definition Classes
    BaseClient
  37. def quit(): Future[Unit]

    Send a quit command to the server.

    Send a quit command to the server. Alternative to release, for protocol compatability.

    returns

    none

    Definition Classes
    BaseClient
  38. def release(): Unit

    release the underlying service(s)

    release the underlying service(s)

    Definition Classes
    ClientAdaptorBaseClient
  39. def replace(key: String, flags: Int, expiry: Time, value: T): Future[Boolean]

    Replace bytes on an existing key.

    Replace bytes on an existing key. If the key doesn't exist, the operation has no effect.

    returns

    true if stored, false if not stored

    Definition Classes
    ClientAdaptorBaseClient
  40. def replace(key: String, value: T): Future[Boolean]

    Replace an item if it exists.

    Replace an item if it exists. If it doesn't exist, the operation has no effect.

    returns

    true if stored, false if not stored

    Definition Classes
    BaseClient
  41. val self: Client

    Definition Classes
    ClientAdaptor → Proxy
  42. def set(key: String, flags: Int, expiry: Time, value: T): Future[Unit]

    Store a key.

    Store a key. Override an existing value.

    returns

    true

    Definition Classes
    ClientAdaptorBaseClient
  43. def set(key: String, value: T): Future[Unit]

    Store a key.

    Store a key. Override an existing values.

    returns

    true

    Definition Classes
    BaseClient
  44. def stats(args: Option[String]): Future[Seq[String]]

    Send a stats command with optional arguments to the server

    Send a stats command with optional arguments to the server

    returns

    a sequence of strings, each of which is a line of output

    Definition Classes
    ClientAdaptorBaseClient
  45. def stats(): Future[Seq[String]]

    Definition Classes
    BaseClient
  46. def stats(args: String): Future[Seq[String]]

    Definition Classes
    BaseClient
  47. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  48. def toString(): String

    Definition Classes
    Proxy → Any
  49. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from Proxy

Inherited from BaseClient[T]

Inherited from AnyRef

Inherited from Any

Ungrouped