diff options
author | Nicolas Favre-Felix <n.favrefelix@gmail.com> | 2010-06-17 12:52:48 +0400 |
---|---|---|
committer | Nicolas Favre-Felix <n.favrefelix@gmail.com> | 2010-06-17 12:52:48 +0400 |
commit | 7c8e45fb78e44e4989f94784348703b159a4449f (patch) | |
tree | e27284ba2a5135efc6ac123910c8848312c9c8d5 /README.markdown | |
parent | 43b43fce7bf38c28e221d1b72fdd554f9a199142 (diff) |
SETEX patch thanks to Zakay Danial.
Diffstat (limited to 'README.markdown')
-rw-r--r-- | README.markdown | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/README.markdown b/README.markdown index 479372c4..c6f861d4 100644 --- a/README.markdown +++ b/README.markdown @@ -89,6 +89,24 @@ Set the string value in argument as value of the key. $redis->set('key', 'value') </pre> +## setex +##### Description + +Set the string value in argument as value of the key, with a time to live. + +##### Parameters +*Key* +*TTL* +*Value* + +##### Return value +*Bool* `TRUE` if the command is successful. + +##### Examples + +<pre> +$redis->setex('key', 3600, 'value'); // sets key → value, with 1h TTL. +</pre> ## setnx ##### Description Set the string value in argument as value of the key if the key doesn't already exist in the database. |