]> git.saurik.com Git - redis.git/commitdiff
add expire command to the php lib
authorLudovico Magnocavallo <ludo@ankh.qix.it>
Wed, 8 Apr 2009 10:09:56 +0000 (12:09 +0200)
committerLudovico Magnocavallo <ludo@ankh.qix.it>
Wed, 8 Apr 2009 10:09:56 +0000 (12:09 +0200)
client-libraries/php/redis.php

index 17867869157a526766f05987f37f41ad8f234d34..643a3ecbc57c8781d2a40c38286bb9795d20bc92 100644 (file)
@@ -118,6 +118,12 @@ class Redis {
         return $this->get_response();
     }
     
+    function &expire($name, $time) {
+        $this->connect();
+        $this->_write("EXPIRE $name $time\r\n");
+        return $this->get_response();
+    }
+    
     function &push($name, $value, $tail=true) {
         // default is to append the element to the list
         $this->connect();