mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 17:10:50 +00:00
add expire command to the php lib
This commit is contained in:
parent
bb7dcc1e51
commit
9a2944ace2
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user