]> git.saurik.com Git - redis.git/blobdiff - client-libraries/php/redis.php
ignore gcc warning about write() return code not checked. It is esplicitily this...
[redis.git] / client-libraries / php / redis.php
index a939cbae581fc1dfdc1278ba6441e553ca301364..6a0d21be68d10dca22210eb09f7664768d145988 100644 (file)
@@ -68,6 +68,12 @@ class Redis {
         $this->write("GET $name\r\n");
         return $this->get_response();
     }
+
+    public function mget($keys) {
+        $this->connect();
+        $this->write("MGET ".implode(" ",$keys)."\r\n");
+        return $this->get_response();
+    }
     
     public function incr($name, $amount=1) {
         $this->connect();
@@ -358,8 +364,11 @@ class Redis {
     }
 }
 
+/*
 $r = new Redis();
+var_dump($r->set("foo","bar"));
 var_dump($r->get("foo"));
 var_dump($r->info());
+*/
 
 ?>