FileCacheFactory
in package
implements
CacheFactory
Class FileCacheFactory
Interfaces, Classes and Traits
- CacheFactory
- Interface CacheFactory
Table of Contents
- $allowedClasses : array<string|int, string>
- $cacheInitializer : CacheInitializerAggregate
- $fileCacheRepository : FileCacheRepository
- __construct() : mixed
- CacheFactory constructor.
- allowDeserializationOf() : void
- Allows the internal deserialization of a PHP class.
- createCacheFor() : SafeCache
- Creates an exception handling PSR based cache based on the given namespace.
- createPsrCacheFor() : CacheInterface
- Creates an exception throwing PSR based cache based on the given namespace.
Properties
$allowedClasses
private
array<string|int, string>
$allowedClasses
$cacheInitializer
private
CacheInitializerAggregate
$cacheInitializer
$fileCacheRepository
private
FileCacheRepository
$fileCacheRepository
Methods
__construct()
CacheFactory constructor.
public
__construct(FileCacheRepository $fileCacheRepository, CacheInitializerAggregate $cacheInitializer) : mixed
Parameters
- $fileCacheRepository : FileCacheRepository
- $cacheInitializer : CacheInitializerAggregate
Return values
mixed —allowDeserializationOf()
Allows the internal deserialization of a PHP class.
public
allowDeserializationOf(string ...$classes) : void
Parameters
- $classes : string
Tags
Return values
void —createCacheFor()
Creates an exception handling PSR based cache based on the given namespace.
public
createCacheFor(string $namespace) : SafeCache
Parameters
- $namespace : string
Tags
Return values
SafeCache —createPsrCacheFor()
Creates an exception throwing PSR based cache based on the given namespace.
public
createPsrCacheFor(string $namespace) : CacheInterface
Parameters
- $namespace : string