FileCacheFactory
class FileCacheFactory (View source)
Creates a FileCache object.
Constants
| DISABLE_CACHE |
The configuration key to disable FileCache completely. |
Properties
| static protected array | $configuration | The configuration used to create FileCache objects. |
|
| static protected string | $prefix | The cache prefix. |
Methods
Instantiates a FileCache object for a given collection identifier.
Gets the configuration used for constructing future file cache objects.
Sets the configuration to use for constructing future file cache objects.
Returns the cache prefix.
Sets the cache prefix that should be used.
Details
static FileCacheInterface
get(string $collection, array $default_configuration = [])
Instantiates a FileCache object for a given collection identifier.
static array
getConfiguration()
Gets the configuration used for constructing future file cache objects.
static
setConfiguration(array $configuration)
Sets the configuration to use for constructing future file cache objects.
static string
getPrefix()
Returns the cache prefix.
static
setPrefix(string $prefix)
Sets the cache prefix that should be used.
Should be set to a secure, unique key to prevent cache pollution by a third party.