Skip to content
redis made ready for lithium
PHP
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
config
extensions
storage
tests
.gitignore
.travis.yml
CONTRIBUTING.md
LICENSE.md
README.md
composer.json

README.md

li3_redis

redis made ready for lithium

Requirements

You need the phpredis PHP extension, which can be found here:

https://github.com/nicolasff/phpredis

An easy way to install it could be this:

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:

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:

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.

  • 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

License

This code is distributed under the terms of the BSD 3-Clause License, http://opensource.org/licenses/BSD-3-Clause

Something went wrong with that request. Please try again.