Download the PHP package thefuriouscoder/propel2-data-cache-behavior without Composer
On this page you can find all versions of the php package thefuriouscoder/propel2-data-cache-behavior. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download thefuriouscoder/propel2-data-cache-behavior
More information about thefuriouscoder/propel2-data-cache-behavior
Files in thefuriouscoder/propel2-data-cache-behavior
Download thefuriouscoder/propel2-data-cache-behavior
More information about thefuriouscoder/propel2-data-cache-behavior
Files in thefuriouscoder/propel2-data-cache-behavior
Vendor thefuriouscoder
Package propel2-data-cache-behavior
Short Description A Propel ORM behavior that provide auto data caching for model and collections. Based on snakano/propel-data-cache-behavior
License MIT
Package propel2-data-cache-behavior
Short Description A Propel ORM behavior that provide auto data caching for model and collections. Based on snakano/propel-data-cache-behavior
License MIT
Please rate this library. Is it a good library?
Informations about the package propel2-data-cache-behavior
Data Cache Behavior for Propel2
A Propel ORM behavior that provide auto data caching to your model. Based on Propel 1.6 work of SNakano.
- support caching system APC, memcached and Redis (via DoctrineCache)
- auto caching and auto flush.
What's the difference with Query Cache Behavior
Query Cache Behavior is caching transformation of a query object (caching SQL code). This Behavior is caching the results of database. (caching result data)
Requirements
- PHP >= 5.3
- Propel >= 2.0.0
- DoctrineCacheFactory
Install
Composer
Add a dependency on thefuriouscoder/propel2-data-cache-behavior
to your project's composer.json
file.
Configuration
schema.xml
Initialize the Cache Store.
Add the following configuration code to your project bootstraping file depending on the storage you are goinng to use.
Using Memcached (php5-memcached extension needed)
Using APC
Using Redis
Basic usage
Disable cache
- setCacheEnable()
- setCacheDisable()
- isCacheEnable()
- setLifetime($ttl)
When cache delete?
- expire cache lifetime.
- call
save()
method. - call
delete()
method. - call
BookQuery::doDeleteAll()
method. - call
BookQuery::purgeCache()
method.
Manually delete cache.
License
MIT License
All versions of propel2-data-cache-behavior with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3.3
propel/propel Version ~2.0@dev
thefuriouscoder/doctrine-cache-factory Version dev-master
propel/propel Version ~2.0@dev
thefuriouscoder/doctrine-cache-factory Version dev-master
The package thefuriouscoder/propel2-data-cache-behavior contains the following files
Loading the files please wait ....