From: Ludovico Magnocavallo Date: Wed, 8 Apr 2009 10:09:56 +0000 (+0200) Subject: add expire command to the php lib X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/9a2944ace2ab5b5dac329c0dd847b289c85b7c72?ds=sidebyside;hp=bb7dcc1e51d38b3fe7abbeea9649a04b9697cbd8 add expire command to the php lib --- diff --git a/client-libraries/php/redis.php b/client-libraries/php/redis.php index 17867869..643a3ecb 100644 --- a/client-libraries/php/redis.php +++ b/client-libraries/php/redis.php @@ -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();