Version 5.1 - All the GraphQL #32
@ -13,12 +13,13 @@
|
|||||||
namespace Aviat\Ion\Cache\Driver;
|
namespace Aviat\Ion\Cache\Driver;
|
||||||
|
|
||||||
use Aviat\Ion\Di\ContainerInterface;
|
use Aviat\Ion\Di\ContainerInterface;
|
||||||
|
use Aviat\Ion\Cache\CacheDriverInterface;
|
||||||
use Aviat\AnimeClient\Model\DB;
|
use Aviat\AnimeClient\Model\DB;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Driver for caching via a traditional SQL database
|
* Driver for caching via a traditional SQL database
|
||||||
*/
|
*/
|
||||||
class SQLDriver extends DB implements \Aviat\Ion\Cache\CacheDriverInterface {
|
class SQLDriver extends DB implements CacheDriverInterface {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The query builder object
|
* The query builder object
|
||||||
|
@ -19,7 +19,7 @@ class CacheRedisDriverTestTwo extends AnimeClient_TestCase {
|
|||||||
$container = new Container();
|
$container = new Container();
|
||||||
$container->set('config', new Config([
|
$container->set('config', new Config([
|
||||||
'redis' => [
|
'redis' => [
|
||||||
'host' => 'localhost',
|
'host' => (array_key_exists('REDIS_HOST', $_ENV)) ? $_ENV['REDIS_HOST'] : 'localhost',
|
||||||
'port' => 6379,
|
'port' => 6379,
|
||||||
'password' => '',
|
'password' => '',
|
||||||
'database' => 13,
|
'database' => 13,
|
||||||
|
Loading…
Reference in New Issue
Block a user