$local_buffer
$local_buffer :array
local object cache
$redis :\FAA\Interfaces\MemoryCache
Memory cache interface Buffer the memory cache interface
$cdn :\FAA\Interfaces\ContentDeliveryNetwork
CDN interface Store the cdn interface instance
$search_interface :array<mixed,\FAA\Interfaces\Search>
Store interface Store the search interface instance
Connection(): \FAA\Interfaces\MemoryCache
Get the redis server connection Wrapper to get the redis instance and the client connection. This function is cached.
A memory cache interface
GetSearchInterface(string $name = FAA_APPLICATION_SEARCH_HANDLER): \FAA\Interfaces\Search
Get the search server connection Wrapper to get the instance and the client connection. This function is cached.
string | $name | Get interface of certain type |
The client or null when not available.
GetCdnInterface(): \FAA\Interfaces\ContentDeliveryNetwork
Get cdn interface get access to the cdn interface that was registered for this instance
System cdn interface
ClearAll(boolean $keep_cdn = false,boolean $drop_all = false): \FAA\Obj\Result
delete all caches wrapper to delete all cache entries
boolean | $keep_cdn | Keep CDN contents when set to true |
boolean | $drop_all | Also delete the persistent caches |
A system result object
read(string $cache_file,boolean $raw = false): \FAA\Obj\Result
read a cache file this function tries to fetch a stored data object from local caches, will use memory cache if it's possible
string | $cache_file | The path to the cache file, relative to cache folder root |
boolean | $raw | Read as raw data |
A default system result object
write(string $cache_file,mixed $data,boolean $raw = false,integer $ttl = -1): \FAA\Obj\Result
save a cache file and if possible, store in memory if available, store a cache entry also in the local de serialize form as static object
string | $cache_file | The path to the cache file |
mixed | $data | The data set to store |
boolean | $raw | Optional write as raw data |
integer | $ttl | Optional time to live. |
A default system result object