SessionAdapter
$session = new PhalconSessionAdapterRedis([
'prefix' => '',
'lifetime' => 86400,
'host' => '127.0.0.1',
'port' => 6379,
'persistent' => false
]);
ModelMetaDataAdapter
$redisMetaData = new PhalconMvcModelMetaDataRedis([
'prefix' => '',
'lifetime' => 86400,
'host' => '127.0.0.1',
'port' => 6379,
'persistent' => false
]);
Cache
$cache = new PhalconCacheBackendRedis([
'prefix' => '',
'lifetime' => 86400,
'host' => '127.0.0.1',
'port' => 6379,
'persistent' => false
]);
如果这些都是用的同一台Redis,那一个请求不就会创建3个连接出来
可以设置共享同一个连接吗?