Package IO\Data\cache

Package IO\Data\cache

Classes summary
CacheManager

This class manages cache. It makes a two-level lazy loading:

  • A top-level cache which avoids loading a data if it has already been done since the beginning of the current page generation. This cache has a short life span: it's flushed as of the PHP interpreter reaches the end of the page generation.
  • A filesystem or shared RAM (via APC) cache to avoid querying the database every time to obtain the same value. This cache is less powerful than the previous but has an infinite life span. Indeed, it's valid until the value changes and the manager is asked to store it
CacheService
Interfaces summary
CacheData

This interface represents data which are stored automatically by the cache manager. The storage mode is very powerful, it uses a two-level cache and the database.

The cache manager is able to manager very well configuration values. They are stored in a map associating a value to a property

Exceptions summary
CacheDataNotFoundException This exception is raised when you are asking a cache entry that doesn't exist.