From 9a2944ace2ab5b5dac329c0dd847b289c85b7c72 Mon Sep 17 00:00:00 2001 From: Ludovico Magnocavallo Date: Wed, 8 Apr 2009 12:09:56 +0200 Subject: [PATCH] add expire command to the php lib --- client-libraries/php/redis.php | 6 ++++++ 1 file changed, 6 insertions(+) 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(); -- 2.45.2