use Phalcon\Annotations\Adapter\Redis;
$annotations = new Redis([
'lifetime' => 8600,
'host' => 'localhost',
'port' => 6379,
'prefix' => 'annotations_',
]);
Mostrar archivo
Open project: phalcon/incubator
Class Usage Examples
Property | Type | Description | |
---|---|---|---|
$redis | Phalcon\Cache\Backend\Redis |
Method | Description | |
---|---|---|
__construct ( array $options = [] ) |
Method | Description | |
---|---|---|
getCacheBackend ( ) : Phalcon\Cache\Backend\Redis | ||
prepareKey ( string $key ) : string |
protected getCacheBackend ( ) : Phalcon\Cache\Backend\Redis | ||
return | Phalcon\Cache\Backend\Redis |
protected prepareKey ( string $key ) : string | ||
$key | string | |
return | string |