OXID eShop CE  6.1.5
OxidEsales\EshopCommunity\Core\FileCache Class Reference
+ Collaboration diagram for OxidEsales\EshopCommunity\Core\FileCache:

Public Member Functions

 getFromCache ($key)
 
 setToCache ($key, $value)
 

Static Public Member Functions

static clearCache ()
 

Public Attributes

const CACHE_FILE_PREFIX = "config"
 

Protected Member Functions

 getCacheFilePath ($key)
 
 getCacheDir ()
 
 getCacheFileName ($key)
 

Detailed Description

Cache for storing module variables selected from database.

Member Function Documentation

◆ clearCache()

static OxidEsales\EshopCommunity\Core\FileCache::clearCache ( )
static

Clears all cache by deleting cached files.

◆ getCacheDir()

OxidEsales\EshopCommunity\Core\FileCache::getCacheDir ( )
protected

Returns cache directory.

Returns
string

◆ getCacheFileName()

OxidEsales\EshopCommunity\Core\FileCache::getCacheFileName (   $key)
protected

Returns shopId which should be used for cache file name generation.

Parameters
string$key
Returns
string

◆ getCacheFilePath()

OxidEsales\EshopCommunity\Core\FileCache::getCacheFilePath (   $key)
protected

Returns module file cache name.

Parameters
string$keycached item key. Will be used for file name generation.
Returns
string

◆ getFromCache()

OxidEsales\EshopCommunity\Core\FileCache::getFromCache (   $key)

Returns cached item value by given key. This method is independent from oxConfig class and does not use database.

Parameters
string$keycached item key.
Returns
mixed

◆ setToCache()

OxidEsales\EshopCommunity\Core\FileCache::setToCache (   $key,
  $value 
)

Caches item value by given key.

Parameters
string$keycached item key.
mixed$value

Member Data Documentation

◆ CACHE_FILE_PREFIX

const OxidEsales\EshopCommunity\Core\FileCache::CACHE_FILE_PREFIX = "config"

Cache file prefix


The documentation for this class was generated from the following file: