Documentation: Redis Driver Server Options wrong syntax
tstrijdhorst opened this issue · 2 comments
tstrijdhorst commented
http://www.stashphp.com/Drivers.html#redis
The example code is wrong. Given:
// One Server
$driver = new Stash\Driver\Redis();
$driver->setOptions(array('servers' => array('127.0.0.1', '6379')));
Should be:
// One Server
$driver = new Stash\Driver\Redis();
$driver->setOptions(array('servers' => array(array('127.0.0.1', '6379'))));
Edit:
Same goes for Memcache Driver:
// One Server
$driver = new Stash\Driver\Memcache();
$driver->setOptions(array('servers' => array('127.0.0.1', '11211')));
alexbowers commented
This needs checking and a pull request being sent into https://github.com/tedious/www.stashphp.com
tstrijdhorst commented
Ah I didn't realise the website was in a repo as well. If I find any more inconsistencies while traversing the docs I will create a PR there :)