iwai / phalcon-model-metadata-redis-adapter
Adapt to Redis the model metadata of Phalcon.
Installs: 4 604
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 1
Open Issues: 1
Requires
- php: >=5.3.3
This package is not auto-updated.
Last update: 2024-11-23 17:57:54 UTC
README
Adapt to Redis the model metadata of Phalcon
Usage
use Phalcon\Mvc\Application; use Iwai\Phalcon\Mvc\Model\MetaData\Redis as MetaDataRedis; $app = new Application(); $app->getDI()->setShared('modelsMetadata', function () { return new MetaDataRedis([ 'host' => '127.0.0.1', 'port' => 6379, ]); });
Options
host
Redis server host
port
Redis server port
prefix
Set hset prefix key for Redis (default __metadata
)
lifetime
Set timeout for cache (default 3600 sec)