PHP Class Cachearium\CacheKey

Afficher le fichier Open project: corollarium/cachearium Class Usage Examples

Méthodes publiques

Свойство Type Description
$base string This is the base key. It's the main index, so to speak. This is useful as a first level to separate cache data logically.
$id string This is the second key, usually an id.
$sub string

Méthodes publiques

Méthode Description
__construct ( string $base, string $id, string $sub = '' )
debug ( ) : string Prints as a pretty string for debugging
getBase ( )
getHash ( ) : string Returns a hash for key.
getId ( )
getSub ( )
setBase ( $base )
setId ( $id )
setSub ( $sub )

Method Details

__construct() public méthode

public __construct ( string $base, string $id, string $sub = '' )
$base string Base string name for the type of cache (e.g., Event)
$id string Item id
$sub string If an item is cache in parts, this is used to specify the parts.

debug() public méthode

Prints as a pretty string for debugging
public debug ( ) : string
Résultat string

getBase() public méthode

public getBase ( )

getHash() public méthode

Returns a hash for key.
public getHash ( ) : string
Résultat string

getId() public méthode

public getId ( )

getSub() public méthode

public getSub ( )

setBase() public méthode

public setBase ( $base )

setId() public méthode

public setId ( $id )

setSub() public méthode

public setSub ( $sub )

Property Details

$base public_oe property

This is the base key. It's the main index, so to speak. This is useful as a first level to separate cache data logically.
public string $base
Résultat string

$id public_oe property

This is the second key, usually an id.
public string $id
Résultat string

$sub public_oe property

public string $sub
Résultat string