Packages

abstract class JavaClient extends AnyRef

A Java-friendly memcached client.

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JavaClient
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new JavaClient()

Abstract Value Members

  1. abstract def add(key: String, flags: Int, expiry: Time, value: Buf): 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

  2. abstract def add(key: String, value: Buf): 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

  3. abstract def append(key: String, value: Buf): 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

  4. abstract def cas(key: String, value: Buf, casUnique: Buf): Future[Boolean]

    A version of cas with default flags & expiry paramters.

  5. abstract def cas(key: String, flags: Int, expiry: Time, value: Buf, casUnique: Buf): Future[Boolean]

    Perform a compare-and-set operation.

    Perform a compare-and-set operation. This is like a replace, except a token identifying the value version to replace is provided. Tokens are retrieved with "gets"

    returns

    true if stored, false if not stored

  6. abstract def decr(key: String, delta: Long): Future[Long]
  7. abstract def decr(key: String): Future[Long]

    Decrement a key.

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

  8. abstract def delete(key: String): Future[Boolean]

    Remove a key.

    Remove a key.

    returns

    true if deleted, false if not found

  9. abstract def get(keys: List[String]): Future[Map[String, Buf]]

    Get a set of keys from the server.

    Get a set of keys from the server.

    returns

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

  10. abstract def get(key: String): Future[Buf]

    Get a key from the server.

  11. abstract def gets(keys: List[String]): Future[Map[String, ResultWithCAS]]

    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.

    returns

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

  12. abstract def gets(key: String): Future[ResultWithCAS]

    Get a key from the server together with a "cas unique" token used in cas operations.

  13. abstract def incr(key: String, delta: Long): Future[Long]
  14. abstract def incr(key: String): Future[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.

  15. abstract def prepend(key: String, value: Buf): 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

  16. abstract def release(): Unit

    release the underlying service(s)

  17. abstract def replace(key: String, flags: Int, expiry: Time, value: Buf): 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

  18. abstract def replace(key: String, value: Buf): 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

  19. abstract def set(key: String, flags: Int, expiry: Time, value: Buf): Future[Void]

    Store a key.

    Store a key. Override an existing value.

    returns

    void

  20. abstract def set(key: String, value: Buf): Future[Void]

    Store a key.

    Store a key. Override an existing value.

    returns

    true

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def add(key: String, value: String): Future[Boolean]
  5. def append(key: String, value: String): Future[Boolean]
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def cas(key: String, value: String, casUnique: Buf): Future[Boolean]

    Convenience version of cas used to store string values.

  8. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. def prepend(key: String, value: String): Future[Boolean]
  19. def set(key: String, value: String): Future[Void]
  20. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped