PHP Class Phalcon\Annotations\Adapter\Redis

Stores the parsed annotations to the Redis database. This adapter is suitable for production. use Phalcon\Annotations\Adapter\Redis; $annotations = new Redis([ 'lifetime' => 8600, 'host' => 'localhost', 'port' => 6379, 'prefix' => 'annotations_', ]);
Inheritance: extends Base
Show file Open project: phalcon/incubator Class Usage Examples

Protected Properties

Property Type Description
$redis Phalcon\Cache\Backend\Redis

Public Methods

Method Description
__construct ( array $options = [] )

Protected Methods

Method Description
getCacheBackend ( ) : Phalcon\Cache\Backend\Redis
prepareKey ( string $key ) : string

Method Details

__construct() public method

public __construct ( array $options = [] )
$options array Options array

getCacheBackend() protected method

protected getCacheBackend ( ) : Phalcon\Cache\Backend\Redis
return Phalcon\Cache\Backend\Redis

prepareKey() protected method

protected prepareKey ( string $key ) : string
$key string
return string

Property Details

$redis protected property

protected Redis,Phalcon\Cache\Backend $redis
return Phalcon\Cache\Backend\Redis