Skip to content

Instantly share code, notes, and snippets.

@notomato
Created August 17, 2012 09:23
Show Gist options
  • Save notomato/3377363 to your computer and use it in GitHub Desktop.
Save notomato/3377363 to your computer and use it in GitHub Desktop.
Cache config with multiple environments
<?php
use lithium\storage\Cache;
Cache::config(array(
'default' => array(
'development' => array('adapter' => 'Apc'),
'production' => array(
'adapter' => 'Memcache',
'host' => '127.0.0.1:1121'
)
)
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment