library phalcon-model-metadata-redis-adapter
Adapt to Redis the model metadata of Phalcon.
iwai/phalcon-model-metadata-redis-adapter
Adapt to Redis the model metadata of Phalcon.
- Friday, February 6, 2015
- by iwai
- Repository
- 1 Watchers
- 3 Stars
- 1,394 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 1 Forks
- 1 Open issues
- 3 Versions
- 7 % Grown
Adapt to Redis the model metadata of Phalcon, (*1)
, (*2)
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, (*3)
port
Redis server port, (*4)
prefix
Set hset prefix key for Redis (default __metadata), (*5)
lifetime
Set timeout for cache (default 3600 sec), (*6)
dev-master
9999999-dev
Adapt to Redis the model metadata of Phalcon.
Sources
Download
MIT
The Requires
redis
phalcon
v1.0.1
1.0.1.0
Adapt to Redis the model metadata of Phalcon.
Sources
Download
MIT
The Requires
redis
phalcon
1.0.0
1.0.0.0
Adapt to Redis the model metadata of Phalcon.
Sources
Download
MIT
The Requires
redis
phalcon