Skip to content

Instantly share code, notes, and snippets.

@notomato
Created August 17, 2012 08:10
Show Gist options
  • Save notomato/3376901 to your computer and use it in GitHub Desktop.
Save notomato/3376901 to your computer and use it in GitHub Desktop.
Example configuring multiple cache types
<?php
//config/bootstrap/cache.php
use lithium\storage\Cache;
Cache::config(array(
'local' => array(
'adapter' => 'Apc'
),
'distributed' => array(
'adapter' => 'Memcache',
'host' => '127.0.0.1:11211'
),
'default' => array(
'adapter' => 'File'
)
));
// http://www.slideshare.net/nateabele/the-zen-of-lithium
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment