PHP 인터페이스 Stiphle\Storage\StorageInterface

저자: Dave Marshall ([email protected])
파일 보기 프로젝트 열기: davedevelopment/stiphle 0 사용 예제들

공개 메소드들

메소드 설명
get ( string $key ) : integer Get
lock ( $key ) : void Lock
set ( string $key, mixed $value ) : void set last modified
setLockWaitTimeout ( integer $milliseconds ) Set lock wait timout
unlock ( $key ) : void Unlock

메소드 상세

get() 공개 메소드

Get
public get ( string $key ) : integer
$key string
리턴 integer

lock() 공개 메소드

We might have multiple requests coming in at once, so we lock the storage
public lock ( $key ) : void
리턴 void

set() 공개 메소드

set last modified
public set ( string $key, mixed $value ) : void
$key string
$value mixed
리턴 void

setLockWaitTimeout() 공개 메소드

Set lock wait timout
public setLockWaitTimeout ( integer $milliseconds )
$milliseconds integer

unlock() 공개 메소드

Unlock
public unlock ( $key ) : void
리턴 void