Redis

Shieldon\Driver\RedisDriver

  • param Redis $redis
  • return self

Make sure you have installed PHP Redis extension and Redis server on your server. You should see something like the screenshot below in php.ini.

Inject a Redis instance to Shieldon data driver.

$redisDriverInstance = new \Shieldon\Driver\RedisDriver($redisInstance));

Example:

$redisInstance = new \Redis();
$redisInstance->connect('127.0.0.1', 6379); 

$shieldon->setDriver(new \Shieldon\Driver\RedisDriver($redisInstance));

That's it.

results matching ""

    No results matching ""