Method |
Description |
|
__construct ( string | array $resource, array $options ) |
Creates a new instance of the cacheProvider for Vars |
|
checkCache ( ) : boolean |
Checks the cache to see if there is a valid cache available |
|
getAttempted ( ) : boolean |
Returns if the cache has been attempted |
|
getExpire ( ) : integer |
Returns how long the cache lasts for |
|
getLoadedVars ( ) : Vars |
Returns the loaded Vars object |
|
getProvide ( ) : boolean |
Returns if cache is on or off |
|
getTime ( ) : integer |
Returns when the cache was made |
|
isHit ( ) : integer |
Returns how long the cache lasts for |
|
load ( ) |
Load the cached file into $this->loaded_vars |
|
makeCache ( Vars $vars ) |
Transfer the contents of the parent Vars object into a file for cache |
|
setProvide ( boolean $provide ) : CacheProvider |
Set the cache on or off |
|
setTime ( integer $time ) : CacheProvider |
Sets the time when the Vars was cached |
|