mirror of
https://github.com/fluencelabs/redis
synced 2025-03-20 01:20: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();
|
||||
}
|
||||
|
||||
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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user