Back

Class: Cache

:clear ($onlyExpired=false)

:get ($key)

load cache data based on $key, or return NULL

:key ($view, $keyDependencies=NULL)

create key based on $view name and array of $keyDependencies

:set ($key, $variable, $time=-1)

add cache variable
$key - key for data
$variable - data
$time - time to cache be valid (minutes), -1 for infinity

:setActive ($active)


Back

ChameleonFramework © 2012 - 2024