add expire command to the php lib

This commit is contained in:
Ludovico Magnocavallo 2009-04-08 12:09:56 +02:00
parent bb7dcc1e51
commit 9a2944ace2

View File

@ -118,6 +118,12 @@ class Redis {
return $this->get_response(); 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) { function &push($name, $value, $tail=true) {
// default is to append the element to the list // default is to append the element to the list
$this->connect(); $this->connect();