mouf / utils.cache.memcached-cache
This package contains a cache mechanism that relies on the Memcached database. For this cache to work, the memcached Pecl package must be enabled.
2.0.x-dev
2015-01-08 13:32 UTC
Requires
- php: >=5.3.0
- ext-memcached: *
- mouf/utils.cache.cache-interface: 2.*
- psr/log: ~1.0
This package is auto-updated.
Last update: 2024-12-15 05:36:43 UTC
README
This package contains an implementation of Mouf's CacheInterface for Memcache, using the memcached pecl package. To learn more about the cache interface, please see the cache system documentation.
This package comes with a default installer that will create a "memcacheCacheService" instance that points to a Memcache server on 127.0.0.1 listening on port 11211.
To use it:
Mouf::getMemcacheCacheService()->set('mykey', 'myvalue'); $mykey = Mouf::getMemcacheCacheService()->get('mykey');