long story short i got redis and phpredis mod working.
simple set/gets work.
when i tried to implement a session handler it does write. any
thoughts
error_reporting(E_ALL);
ini_set('dispaly_errors',1);
function open($save_path, $session_name){
global $redis;
$redis = new Redis();
$redis->connect('127.0.0.1',6379);
return(true);
}
function close(){
return(true);
}
function read($id){
global $redis;
return $redis->get($id);
}
function write($id, $sess_data){
global $redis;
print_r( $redis->set($id,'x'));
}
function destroy($id){
global $redis;
return $redis->delete($id);
}
function gc($maxlifetime){
return true;
}
session_set_save_handler("open", "close", "read", "write", "destroy",
"gc");
session_start();
echo $_SESSION['foo'].'<br>';
echo $_SESSION['bar'].'<br>';
$_SESSION['foo'] = 'baz';
$_SESSION['bar'] = 'bugz';
echo $_SESSION['foo'].'<br>';
echo $_SESSION['bar'].'<br>';
--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To post to this group, send email to
redi...@googlegroups.com.
To unsubscribe from this group, send email to
redis-db+u...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/redis-db?hl=en.