Download the PHP package snakano/propel-data-cache-behavior without Composer
On this page you can find all versions of the php package snakano/propel-data-cache-behavior. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package propel-data-cache-behavior
PropelDataCacheBehavior
A Propel ORM behavior that provide auto data caching to your model.
- support caching system APC, memcached and Redis (via DominoCacheStore)
- auto caching and auto flush.
What's the difference Query Cache Behavior
Query Cache Behavior is caching transformation of a Query object (caching SQL code).
This Behavior is caching the results of database. (result data cache)
Requirements
- Propel >= 1.6.0
- DominoCacheStore
Install
Composer
Add a dependency on snakano/propel-data-cache-behavior
to your project's composer.json
file.
Then, add the following configuration to your build.properties
or propel.ini
file:
Configuration
schema.xml
if use memcached.
Add the following configuration code to your project bootstraping file.
Basic usage
Disable cache
- setCacheEnable()
- setCacheDisable()
- isCacheEnable()
- setLifetime($ttl)
When cache delete?
- expire cache lifetime.
- call
save()
method. - call
delete()
method. - call
BookPeer::doDeleteAll()
method. - call
BookPeer::purgeCache()
method.
Manually delete cache.
License
MIT License
All versions of propel-data-cache-behavior with dependencies
PHP Build Version
Package Version
The package snakano/propel-data-cache-behavior contains the following files
Loading the files please wait ....