Minor correction to documentation

This commit is contained in:
Sean Harvey 2014-08-26 14:55:28 +12:00
parent 9ec4669a59
commit 70dfc55d34

View File

@ -26,7 +26,7 @@ This example uses `[api:SS_Cache]` in some custom code, and the same cache is cl
public function MyCachedContent() {
$cache = SS_Cache::factory('mycache')
$something = $cache->get('mykey');
$something = $cache->load('mykey');
if(!$something) {
$something = 'value to be cached';
$cache->save($something);