dinCachePlugin - 0.9.1

Smart cache plugin.

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to the Plugins Home

Signin


Forgot your password?
Create an account

Tools

Stats

advanced search
Information Readme Releases Changelog Contribute
dinCachePlugin 0.9.1beta for sf 1.4sf 1.3 and Doctrine MIT
Plugin image
4
users
Sign-in
to change
your status

Identity management plugin.

Plugin info

This plugin features so-called "smart caching" method.

Its main advantage: cache is purged only if original data has changed. To achieve this, plugin uses a set of rules, similar to routing. Rule describes all data dependencies, paths and keys creation, choice of caching method etc. Cache manager works as proxy – it processes all data requests and then extracts data from cache or forwards query to ORM.

Once cache manager receives a data request with a certain key (rule name), it checks if there’s relevant data in cache. If data is found, it is return. If not – manager forwards request to ORM model, received data is processed according to its type and stored in cache. Any model change (object is added, deleted or modified) is intercepted by special listener. Manager processes this event and – if suitable rule is found – purges all associated with that object cached data.

Key advantages

  • Plugin is light and saves a lot of resources, eliminating the need to load an ORM, if cached data is found
  • Lifespan of cache is limited only by it’s relevance – until original data won’t be changed partially or completely
  • Flexible cache management through yml configuration file

Current limitations

  • Only ORM Doctrine 1.2 currently supported
  • Only file caching is tested at this moment

Dependencies

Developers

Name Status Email
gravatar Nicolay N. Zyk lead moc.liamg <<ta>> nas.oler

License

Show source

Copyright (c) 2009-2010 DineCat [dinecat.com]

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Extended Support

For extended support or customization, you may buy support for this product.
For detailed information see http://www.dinecat.com/support.html