Caching
Last updated
Last updated
Cement defines a , but does not implement caching by default.
Cement often includes multiple handler implementations of an interface that may or may not have additional features or functionality than the interface requires. The documentation below only references usage based on the interface and default handler (not the full capabilities of an implementation).
Cement Extensions That Provide Cache Handlers:
API References:
The following options under modify configuration handling:
Option
Description
cache_handler
The handler that implements the cache interface.
The following example uses the , which requires the pylibmc
library to be installed, as well as a Memcached server running on localhost:11211
.
All interfaces in Cement can be overridden with your own implementation. This can be done either by sub-classing itself, or by sub-classing an existing extension's handlers in order to alter their functionality.