◆ getCache()
static getCache |
( |
|
$apply_proxied_operations = true | ) |
|
|
static |
Returns a cache instance.
- Parameters
-
bool | $apply_proxied_operations | Whether or not to apply any proxied (disable this in tests!) |
- Returns
- StudipCache the cache instance
◆ getConfig()
Returns the currently used config instance
- Returns
- Config an instance of class Config used by this factory to determine the class of the actual implementation of the StudipCache interface; if no config was set, it returns the instance returned by Config::getInstance
- See also
- Config
◆ instantiateCache()
static instantiateCache |
( |
|
$class, |
|
|
|
$arguments |
|
) |
| |
|
static |
Return an instance of a given class using some arguments. Unless the memory cache is instantiated, the cache will be wrapped in a wrapper class that uses a memory cache to reduce accesses to the cache.
- Parameters
-
string | $class | the name of the class |
array | $arguments | an array of arguments to be used by the constructor |
- Returns
- StudipCache an instance of the specified class
◆ loadCacheClass()
static loadCacheClass |
( |
| ) |
|
|
static |
Load configured cache class and return its name.
- Returns
- string the name of the configured cache class
◆ retrieveConstructorArguments()
static retrieveConstructorArguments |
( |
| ) |
|
|
static |
Return an array of arguments required for instantiation of the cache class.
- Returns
- array the array of arguments
◆ setConfig()
static setConfig |
( |
|
$config | ) |
|
|
static |
- Parameters
-
Config | $config | an instance of class Config which will be used to determine the class of the implementation of interface StudipCache |
◆ unconfigure()
Resets the configuration and voids the cache instance.
◆ DEFAULT_CACHE_CLASS
The documentation for this class was generated from the following file: