Update the expiry time of an item
touch key expiryWhere:
key (binary) -
Document ID used to identify the value
expiry (numeric) -
Expiry time for key
.NET Client Library
object.Touch(key, expiry)
Returns: Boolean (
Boolean (true/false)
)
Java (spymemcached)
client.touch(key, expiry)
Returns: Future<Boolean> (
Asynchronous request value, as Boolean
)
PHP (Couchbase PHP SDK)
$object->touch($key, $expiry)
Returns: boolean; supported values:
$object->touchMulti($keyarray, $expiry)
Returns: boolean; supported values:
Ruby (Fauna)
object.touch-one(key [, ruby-touch-options ] [, ruby-touch-keys ])
Returns: Boolean (
Boolean (true/false)
)
object.touch-many(keyn)
Returns: hash (
Container with key/value pairs
)
Python
object.touch(key, expiry)
Returns: Boolean (
Boolean (true/false)
)