Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Discontinued. PHP caching & invalidation for the lazy coder

branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Eventcache is a PHP class for caching that:

  • Is very fast
  • Supports multiple backends
    • memcache
    • apc (has some bugs)
    • redis (needs 2.2)
    • file
  • Is easy to implement
  • Doesn't care about your framework
  • Tries to solve the invalidation problem by using events & triggers
  • Can be used as a wrapper around heavy functions

On the I held a presentation on Eventcache during the 2nd CakePHP borrel in Utrecht. It explains what Eventcache does and how you can implement it.


require_once APP . DS . 'vendors' . DS . 'eventcache' . DS . 'EventCache.php';
    'disable' => false, // Disable/Enable eventcache globally
    'adapter' => 'EventCacheAdapterRedis',
    'servers' => array(
            'host' => '',
            'port' => 6379,

Most Basic Example

EventCache::write('name', 'Kevin');
$val = EventCache::read('name');
Something went wrong with that request. Please try again.