cnam / redis-service-provider
There is no license information available for the latest version (0.0.1) of this package.
Redis Service Provider for usage in silex 2.0§
0.0.1
2015-04-09 09:13 UTC
Requires
- pimple/pimple: 3.0.*
This package is auto-updated.
Last update: 2024-11-27 02:53:44 UTC
README
Redis service provider for silex 2.0
install
composer require cnam/redis-service-provider:0.0.1
Or add your composer.json
require "cnam/redis-service-provider":"0.0.1"
Configure
$app['redis.options'] = [ 'host' => 'redis', 'port' => 6379, 'timeout' => 0, 'dbname' => 'my_box', 'password' => 'qwerty' ]; $app->register(new Silex\Provider\RedisServiceProvider());
Usage
/** * @var $redis \Redis **/ $redis = $app['redis'];