class CacheManager (View source)

The CacheManager class.

Methods

__construct(Config $config)

Class init.

CacheInterface
getCache(string $name = 'windwalker', string $storage = 'array', string $serializer = 'php', array $options = array())

Create cache object.

CacheInterface
create(string $name = 'windwalker', string $storage = 'array', string $serializer = 'php', array $options = array())

getCache

CacheInterface
getGlobal(bool $forceNew = false)

getGlobal

CacheItemPoolInterface
getStorage(string $storage, array $options = array(), string $name = 'windwalker')

getStorage

SerializerInterface
getSerializer($serializer)

getDataHandler

boolean
ignoreGlobal(boolean $bool = null)

Method to get property IgnoreGlobal

string
getCacheClass()

Method to get property CacheClass

setCacheClass(string $cacheClass)

Method to set property cacheClass

Details

at line line 61
__construct(Config $config)

Class init.

Parameters

Config $config @since 3.0

at line line 77
CacheInterface getCache(string $name = 'windwalker', string $storage = 'array', string $serializer = 'php', array $options = array())

Create cache object.

Parameters

string $name
string $storage
string $serializer
array $options

Return Value

CacheInterface

Exceptions

UnexpectedValueException

at line line 103
CacheInterface create(string $name = 'windwalker', string $storage = 'array', string $serializer = 'php', array $options = array())

getCache

Parameters

string $name
string $storage
string $serializer
array $options

Return Value

CacheInterface

at line line 133
CacheInterface getGlobal(bool $forceNew = false)

getGlobal

Parameters

bool $forceNew

Return Value

CacheInterface

at line line 150
CacheItemPoolInterface getStorage(string $storage, array $options = array(), string $name = 'windwalker')

getStorage

Parameters

string $storage
array $options
string $name

Return Value

CacheItemPoolInterface

Exceptions

UnexpectedValueException
DomainException

at line line 206
SerializerInterface getSerializer($serializer)

getDataHandler

Parameters

$serializer

Return Value

SerializerInterface

at line line 225
boolean ignoreGlobal(boolean $bool = null)

Method to get property IgnoreGlobal

Parameters

boolean $bool

Return Value

boolean

at line line 242
string getCacheClass()

Method to get property CacheClass

Return Value

string

at line line 254
CacheManager setCacheClass(string $cacheClass)

Method to set property cacheClass

Parameters

string $cacheClass

Return Value

CacheManager Return self to support chaining.