PHP 클래스 Airship\Engine\Cache\SharedMemory

Store values in shared memory.
상속: implements CacheInterface
파일 보기 프로젝트 열기: paragonie/airship

보호된 프로퍼티들

프로퍼티 타입 설명
$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