Skip to content
This repository has been archived by the owner on Jun 18, 2019. It is now read-only.

rwky/Rwky-Redis

Repository files navigation

###This is no longer maintained

Author Rowan Wookey [email protected] © copyright 2010-2011. LICENSE: Released under the Simplified BSD License, see the LICENSE file or http://www.opensource.org/licenses/BSD-2-Clause

System Requirements PHP 5.3.0 or greater

Examples of usage

Create a redis instant, add some data via a pipe and then return it

require("rwky-redis.php");
$redis = new \RWKY\Redis\Redis();
$response=$redis->pipe()->set("Question","What is your favourite colour?")->set("Answer","Blue...no yellow..ARGHHHH")->get("Question")->get("Answer")->drain();
print_r($response);

Will output:

Array
(
    [0] => 1
    [1] => 1
    [2] => What is your favourite colour?
    [3] => Blue...no yellow..ARGHHHH
)

The code for this example can be found in the examples/example1.php file

Flattr this git repo