phpDocumentor

CacheFactory

Interface CacheFactory

Table of Contents

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.

Methods

allowDeserializationOf()

Allows the internal deserialization of a PHP class.

public allowDeserializationOf(string ...$classes) : void

Note: The created caches use the internal PHP methods of (de)serialization. To take care of any unserialize() exploit, it's needed to provide a list of allowed classes.

Parameters
$classes : string
Return values
void

createCacheFor()

Creates an exception handling PSR based cache based on the given namespace.

public createCacheFor(string $namespace) : SafeCache
Parameters
$namespace : string
Return values
SafeCache

createPsrCacheFor()

Creates an exception throwing PSR based cache based on the given namespace.

public createPsrCacheFor(string $namespace) : CacheInterface
Parameters
$namespace : string
Tags
throws
InvalidArgumentException
Return values
CacheInterface

Search results