li3_redis
redis made ready for lithium, (*1)
Requirements
You need the phpredis
PHP extension, which can be found here:, (*2)
https://github.com/nicolasff/phpredis, (*3)
An easy way to install it could be this:, (*4)
git clone git://github.com/nicolasff/phpredis.git
cd phpredis
phpize
./configure
make
sudo -s make install
sudo -s
echo "extension=redis.so" > /etc/php5/conf.d/redis.ini
exit
sudo service apache2 restart
Installation
Add a submodule to your li3 libraries:, (*5)
git submodule add git@github.com:bruensicke/li3_redis.git libraries/li3_redis
and activate it in you app (config/bootstrap/libraries.php), of course:, (*6)
Libraries::add('li3_redis');
Todos
i want to address the following topics. If you need something or can share something of value, please get in touch with me., (*7)
- create redis datasource (done)
- use Connection class to define connections (done)
- fix failing unit-tests (done)
- convert leaderboard class to use lithium standards
_init()
etc. (partly done)
- use Redis class as utility class for Leaderboard (done)
- auto-add/remove namespace formats to include environments or other variables in keys (done)
- add stats class (done)
- add stats command
- add points / score class
- add user messaging system
- add basic queue system
that may also go into li3_queue or li3_resque
Credits
Please report any bug or feature-request here: https://github.com/bruensicke/li3_redis/issues, (*8)
License
This code is distributed under the terms of the BSD 3-Clause License, http://opensource.org/licenses/BSD-3-Clause, (*9)