PHP Класс Airship\Engine\Cache\SharedMemory

Store values in shared memory.
Наследование: implements CacheInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$authKey Key
$cacheKeyL string
$cacheKeyR string
$personalization string

Открытые методы

Метод Описание
__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

Описание методов

__construct() публичный Метод

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

delete() публичный Метод

Delete a cache entry
public delete ( string $key ) : boolean
$key string
Результат boolean

get() публичный Метод

Get a cache entry
public get ( string $key ) : null | mixed
$key string
Результат null | mixed

getSHMKey() публичный Метод

Compute an integer key for shared memory
public getSHMKey ( string $lookup ) : string
$lookup string
Результат string

personalize() публичный Метод

Add a prefix to the hash function input
public personalize ( string $string ) : self
$string string
Результат self

set() публичный Метод

Set a cache entry
public set ( string $key, $value ) : boolean
$key string
$value
Результат boolean

Описание свойств

$authKey защищенное свойство

protected Key $authKey
Результат Key

$cacheKeyL защищенное свойство

protected string $cacheKeyL
Результат string

$cacheKeyR защищенное свойство

protected string $cacheKeyR
Результат string

$personalization защищенное свойство

protected string $personalization
Результат string