abstract class JavaClient extends AnyRef
A Java-friendly memcached client.
- Alphabetic
- By Inheritance
- JavaClient
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new JavaClient()
Abstract Value Members
-
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
-
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
-
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
-
abstract
def
cas(key: String, value: Buf, casUnique: Buf): Future[Boolean]
A version of cas with default flags & expiry paramters.
-
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
- abstract def decr(key: String, delta: Long): Future[Long]
-
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.
-
abstract
def
delete(key: String): Future[Boolean]
Remove a key.
Remove a key.
- returns
true if deleted, false if not found
-
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.
-
abstract
def
get(key: String): Future[Buf]
Get a key from the server.
-
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.
-
abstract
def
gets(key: String): Future[ResultWithCAS]
Get a key from the server together with a "cas unique" token used in cas operations.
- abstract def incr(key: String, delta: Long): Future[Long]
-
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.
-
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
-
abstract
def
release(): Unit
release the underlying service(s)
-
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
-
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
-
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
-
abstract
def
set(key: String, value: Buf): Future[Void]
Store a key.
Store a key. Override an existing value.
- returns
true
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def add(key: String, value: String): Future[Boolean]
- def append(key: String, value: String): Future[Boolean]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
cas(key: String, value: String, casUnique: Buf): Future[Boolean]
Convenience version of cas used to store string values.
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def prepend(key: String, value: String): Future[Boolean]
- def set(key: String, value: String): Future[Void]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )