PHP Class Airship\Engine\Cache\SharedMemory

Store values in shared memory.
Inheritance: implements CacheInterface
Mostrar archivo Open project: paragonie/airship

Protected Properties

Property Type Description
$authKey Key
$cacheKeyL string
$cacheKeyR string
$personalization string

Public Methods

Method 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 method

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

delete() public method

Delete a cache entry
public delete ( string $key ) : boolean
$key string
return boolean

get() public method

Get a cache entry
public get ( string $key ) : null | mixed
$key string
return null | mixed

getSHMKey() public method

Compute an integer key for shared memory
public getSHMKey ( string $lookup ) : string
$lookup string
return string

personalize() public method

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

set() public method

Set a cache entry
public set ( string $key, $value ) : boolean
$key string
$value
return boolean

Property Details

$authKey protected_oe property

protected Key $authKey
return Key

$cacheKeyL protected_oe property

protected string $cacheKeyL
return string

$cacheKeyR protected_oe property

protected string $cacheKeyR
return string

$personalization protected_oe property

protected string $personalization
return string