sfMemcache Plugin
sfMemcache is a plugin that utilizes memcached as a caching layer for both view templates and functions. This enables you to centralize your caching and is faster then a file-based methodology.
Special thanks to Kum Sackey <ke.sackey@gmail.com> for his sfMemcacheConfigHandler class.
Requirements
memcached installed memcache PECL extension for php: http://us3.php.net/memcache
Installation
php symfony plugin-install http://plugins.symfony-project.com/sfMemcachePlugin
Please read the README file for some details on setting up the plugin. Basically all you need to do is copy the 2 files in config/ into your application config and customize memcache.yml with the relevant values.
First release (0.0.2)
This first release includes support for standard view template caching and a class to use for function caching.
Planned Features:
Contacts
- myke (myke at webhines.com)
Additional
Attached are my copies of a viewcache and session cache based on memcached.
I also added a class: SfAdvMemcachedCache? (May become sfMemcached for Symfony 1.1) This class is based on sfCache in the svn for symfony 1.1 and comes with addititional features not available in the current version.
Non-exhaustive list of changes - clean() no longer takes a namespace. In fact all namepacing is gone. - clean() - $mode = OLD is deperacated. - Logging: Get(), Set(), and Remove() will have their execution times logged and this will appear in web debug toolbar - removePattern() - Removes content from the cache that matches the given pattern. - getMany() - Retrieve values from memcached instance in paralell. Can be a performance gain. - getStatus() - Returns the status of this memcached bucket. Useful in debugging. - Memcached instances use zlib compression by default. Can be selectively disabled.
Note: All the new classes are using sfAdvMemcached by default and are based on the copies in the Symfony 1.1 SVN:
- sfMemcachedViewCache - sfMemcacheSessionStorage
Attachments
- sfMemcachePlugin-0.0.2.tgz (5.9 kB) - added by myke on 08/31/07 01:01:34.
- sfAdvMemcachedCache.zip (5.6 kB) -
Possible Version 0.3 (Session + View Cache Included)
, added by crux_op on 09/20/07 11:27:03.