PHP Class Airship\Engine\Cache\SharedMemory

Store values in shared memory.
Inheritance: implements CacheInterface
Afficher le fichier Open project: paragonie/airship

Protected Properties

Свойство Type Description
$authKey Key
$cacheKeyL string
$cacheKeyR string
$personalization string

Méthodes publiques

Méthode Description
__construct ( Key $cacheKey = null, AuthenticationKey $authKey = null, string $personalization = '' ) SharedMemory constructor
delete ( string $key ) : boolean Delete a cache entry
get ( string $key ) : null | mixed Get a cache entry
getSHMKey ( string $lookup ) : string Compute an integer key for shared memory
personalize ( string $string ) : self Add a prefix to the hash function input
set ( string $key, $value ) : boolean Set a cache entry

Method Details

__construct() public méthode

.
public __construct ( Key $cacheKey = null, AuthenticationKey $authKey = null, string $personalization = '' )
$cacheKey Key
$authKey AuthenticationKey
$personalization string

delete() public méthode

Delete a cache entry
public delete ( string $key ) : boolean
$key string
Résultat boolean

get() public méthode

Get a cache entry
public get ( string $key ) : null | mixed
$key string
Résultat null | mixed

getSHMKey() public méthode

Compute an integer key for shared memory
public getSHMKey ( string $lookup ) : string
$lookup string
Résultat string

personalize() public méthode

Add a prefix to the hash function input
public personalize ( string $string ) : self
$string string
Résultat self

set() public méthode

Set a cache entry
public set ( string $key, $value ) : boolean
$key string
$value
Résultat boolean

Property Details

$authKey protected_oe property

protected Key $authKey
Résultat Key

$cacheKeyL protected_oe property

protected string $cacheKeyL
Résultat string

$cacheKeyR protected_oe property

protected string $cacheKeyR
Résultat string

$personalization protected_oe property

protected string $personalization
Résultat string