PHP Class Imdb\CacheBase

Author: Yevgeniy Yanavichus ([email protected])
Inheritance: implements CacheInterface
Afficher le fichier Open project: tboothman/imdbphp Class Usage Examples

Protected Properties

Свойство Type Description
$config Config
$logger Psr\Log\LoggerInterface

Méthodes publiques

Méthode Description
__construct ( Config $config = null, Psr\Log\LoggerInterface $logger = null ) CacheBase constructor.
get ( $key )
getInternal ( string $key, string $cleanKey ) : string | null Specific implementation which should be overridden
purge ( )
purgeInternal ( ) Specific implementation which should be overridden
set ( $key, $value )
setInternal ( string $key, string $cleanKey, string $value ) : boolean Specific implementation which should be overridden

Private Methods

Méthode Description
sanitiseKey ( string $key ) : string Auxiliary method

Method Details

__construct() public méthode

CacheBase constructor.
public __construct ( Config $config = null, Psr\Log\LoggerInterface $logger = null )
$config Config
$logger Psr\Log\LoggerInterface OPTIONAL override default logger

get() public méthode

public get ( $key )

getInternal() abstract public méthode

Specific implementation which should be overridden
abstract public getInternal ( string $key, string $cleanKey ) : string | null
$key string
$cleanKey string
Résultat string | null null on failure / cache miss

purge() public méthode

public purge ( )

purgeInternal() abstract public méthode

Specific implementation which should be overridden
abstract public purgeInternal ( )

set() public méthode

public set ( $key, $value )

setInternal() abstract public méthode

Specific implementation which should be overridden
abstract public setInternal ( string $key, string $cleanKey, string $value ) : boolean
$key string
$cleanKey string
$value string
Résultat boolean successful?

Property Details

$config protected_oe property

protected Config,imdb $config
Résultat Config

$logger protected_oe property

protected LoggerInterface,Psr\Log $logger
Résultat Psr\Log\LoggerInterface