The PHP extension is a little deficient on command support, also while
I was coding with it - there may have been a weird memory leak as my
program continued to eat memory and never release it. Perhaps it was a
problem with my coding as I changed the structure of the program
around and also I switched to the imemcached-php client by gf - which
supports all current commands. You can get it @
http://imemcacheclient-php.googlecode.com/svn/trunk/Redis.class.php
Well and actually looking @ the code it doesn't support the auth
command, so here's how you can add it:
public function auth($password, $server="*") {
return $this->requestByServer($server,'AUTH ' . $password);
}
The class works like so:
$redis = new Redis();
$redis->addServer("127.0.0.1", 6379);
$redis->get("testkey");
etc...
If you paste in the auth function you can just squeeze:
$redis->auth("thepassword");
in before you start calling commands.
Note: Had to re-post this msg with corrected URL!