Get one or more key values
get key [ keyn ]Where:
key (binary) -
Document ID used to identify the value
keyn (array) -
One or more keys used to reference a value
memcached text protocol
get key [ keyn ]
Returns: binary-string (
Binary object
)
.NET Client Library
object.Get(key)
Returns: Object (
Binary object
)
object.Get(keyarray)
Returns: Object (
Binary object
)
object.GetWithCas(key)
Returns: CasResult<ulong> (
Cas result of bool
)
object.ExecuteGet(key)
Returns: IGetOperationResult (
Get operation result
)
object.ExecuteGet(keyarray)
Returns: IGetOperationResult (
Get operation result
)
object.KeyExists(key)
Returns: Boolean (
Boolean (true/false)
)
Java (spymemcached)
client.get(key)
Returns: Object (
Binary object
)
client.get(key, transcoder)
Returns: T (
Transcoded object
)
client.asyncGet(key)
Returns: Future<Object> (
Asynchronous request value, as Object
)
client.asyncGet(key, transcoder)
Returns: Future<T> (
Asynchronous request value, as Transcoded Object
)
client.getBulk(keycollection)
Returns: Map<String,Object> (
Map of Strings/Objects
)
client.getBulk(keycollection, transcoder)
Returns: Map<String,T> (
Map of Strings/Transcoded objects
)
client.getBulk(keyn)
Returns: Map<String,Object> (
Map of Strings/Objects
)
client.getBulk(transcoder, keyn)
Returns: Map<String,T> (
Map of Strings/Transcoded objects
)
client.asyncGetBulk(keycollection)
Returns: BulkFuture<Map<String,Object>> (
Map of Strings/Objects
)
client.asyncGetBulk(keycollection, transcoder)
Returns: BulkFuture<Map<String,T>> (
Map of Strings/Transcoded objects
)
client.asyncGetBulk(keyn)
Returns: BulkFuture<Map<String,Object>> (
Map of Strings/Objects
)
client.asyncGetBulk(transcoder, keyn)
Returns: BulkFuture<Map<String,T>> (
Map of Strings/Transcoded objects
)
Perl (Cache::Memcached::libmemcached)
$object->get($key)
Returns: (
Binary object
)
$object->get_multi($keyn)
Returns: (
Binary object
)
PHP (Couchbase PHP SDK)
$object->get($key [, $callback ] [, $casunique ])
Returns: scalar; supported values:
$object->getMulti($keycollection [, $casarray ])
Returns: array (
Array of key/value pairs for each document, or key/error condition for each failure
)
$object->getMultiByKey($master_key, $keyn [, $cas_token ] [, $flags ])
Returns: scalar (
Binary object
)
$object->getDelayed($keyn [, $with_cas ] [, $callback ])
Returns: boolean; supported values:
$object->getByKey($master_key, $key [, $cache_callback ] [, $casunique ])
Returns: scalar (
Binary object
)
$object->getDelayedByKey($master_key, $keyn [, $with_cas ] [, $callback ])
Returns: scalar (
Binary object
)
$object->fetch($key [, $keyn ])
Returns: array (
An array of the next document retrieved, or NULL if no more
documents
)
$object->fetchAll($key [, $keyn ])
Returns: array (
An array of all the remaining documents retrieved, or NULL if no
more documents
)
Python
object.get(key [, vbucket ])
Returns: object (
Binary object
)
object.getMulti(keyn)
Returns: object (
Binary object
)
Ruby (Fauna)
object.get(keyn [, ruby-get-options ] [, ruby-get-keys ])
Returns: hash (
Container with key/value pairs
)