Neos\Cache\Backend RedisBackend in PHP: 3 esempi trovati. Questi sono i migliori esempi reali in PHP per Neos\Cache\Backend\RedisBackend, estratti da progetti open source. Li puoi valutare, per aiutarci a migliorare la qualità dei nostri esempi.
Redis is a noSQL database with very good scaling characteristics
in proportion to the amount of entries and data size.
See also:
http://redis.io/
See also:
https://github.com/nicolasff/phpredis Available backend options:
- defaultLifetime: The default lifetime of a cache entry
- hostname: The hostname (or socket filepath) of the redis server
- port: The TCP port of the redis server (will be ignored if connecting to a socket)
- database: The database index that will be used. By default,
Redis has 16 databases with index number 0 - 15
Requirements:
- Redis 2.6.0+ (tested with 2.6.14 and 2.8.5)
- phpredis with Redis 2.6 support, e.g. 2.2.4 (tested with 92782639b0329ff91658a0602a3d816446a3663d from 2014-01-06)
Implementation based on ext:rediscache by Christopher Hlubek - networkteam GmbH
Each Redis key contains a prefix built from the cache identifier,
so one single database can be used for different caches.
Cache entry data is stored in a simple key. Tags are stored in Sets.
Since Redis < 2.8.0 does not provide a mechanism for iterating over keys,
a separate list with all entries is populated
Inheritance:
extendsAbstractBackend, implementsNeos\Cache\Backend\TaggableBackendInterface, implementsIterableBackendInterface, implementsNeos\Cache\Backend\FreezableBackendInterface, implementsNeos\Cache\Backend\PhpCapableBackendInterface, use traitRequireOnceFromValueTrait