Commit 9a2944ac authored by Ludovico Magnocavallo's avatar Ludovico Magnocavallo
Browse files

add expire command to the php lib

parent bb7dcc1e
...@@ -118,6 +118,12 @@ class Redis { ...@@ -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();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment