mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Minor correction to documentation
This commit is contained in:
parent
9ec4669a59
commit
70dfc55d34
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user