Working on this RedisModel class

Got it working fairly well, just trying to get all of my assumption / opinions baked in. Still need to come up with a decent way to generate session hashes to help avoid session collision . Incidentally Retwis seems to be susceptible to this.
This commit is contained in:
Josh Sherman 2013-12-15 22:59:39 -05:00
parent 7063b7aafe
commit 9fe9eb7acf
5 changed files with 140 additions and 38 deletions

View file

@ -9,22 +9,6 @@ class CustomModule extends Module
parent::__construct();
$this->redis = new CustomRedis();
/*
$datasource = $this->config->datasources['redis'];
try
{
$this->redis = new Redis();
$this->redis->connect($datasource['hostname'], $datasource['port']);
$this->redis->setOption(Redis::OPT_PREFIX, $datasource['namespace'] . ':');
$this->redis->select($datasource['database']);
}
catch (RedisException $e)
{
}
*/
}
}