PHP 클래스 Lavender\Cloud\Sina\Cache\KvdbStore

상속: implements Illuminate\Cache\StoreInterface
파일 보기 프로젝트 열기: chekun/laravel4sae

보호된 프로퍼티들

프로퍼티 타입 설명
$kvdb SaeKV The kvdb instance.
$prefix string A string that should be prepended to keys.

공개 메소드들

메소드 설명
__construct ( SaeKV $kvdb, string $prefix = '' ) : void Create a new Kvdb store.
decrement ( string $key, mixed $value = 1 ) : integer Increment the value of an item in the cache.
flush ( ) : void Remove all items from the cache.
forever ( string $key, mixed $value ) : void Store an item in the cache indefinitely.
forget ( string $key ) : void Remove an item from the cache.
get ( string $key ) : mixed Retrieve an item from the cache by key.
getKvdb ( ) : SaeKV Get the underlying Kvdb connection.
getPrefix ( ) : string Get the cache key prefix.
increment ( string $key, mixed $value = 1 ) : integer Increment the value of an item in the cache.
put ( string $key, mixed $value, $minutes ) : void Store an item in the cache for a given number of minutes.
section ( string $name ) : Illuminate\Cache\Section Begin executing a new section operation.

비공개 메소드들

메소드 설명
incrementOrDecrement ( string $key, mixed $value, string $direction = '+' ) : integer Increment or Decrement the value of an item in the cache.

메소드 상세

__construct() 공개 메소드

Create a new Kvdb store.
public __construct ( SaeKV $kvdb, string $prefix = '' ) : void
$kvdb SaeKV
$prefix string
리턴 void

decrement() 공개 메소드

Increment the value of an item in the cache.
public decrement ( string $key, mixed $value = 1 ) : integer
$key string
$value mixed
리턴 integer

flush() 공개 메소드

Remove all items from the cache.
public flush ( ) : void
리턴 void

forever() 공개 메소드

This is just an alias for put.
public forever ( string $key, mixed $value ) : void
$key string
$value mixed
리턴 void

forget() 공개 메소드

Remove an item from the cache.
public forget ( string $key ) : void
$key string
리턴 void

get() 공개 메소드

Retrieve an item from the cache by key.
public get ( string $key ) : mixed
$key string
리턴 mixed

getKvdb() 공개 메소드

Get the underlying Kvdb connection.
public getKvdb ( ) : SaeKV
리턴 SaeKV

getPrefix() 공개 메소드

Get the cache key prefix.
public getPrefix ( ) : string
리턴 string

increment() 공개 메소드

Increment the value of an item in the cache.
public increment ( string $key, mixed $value = 1 ) : integer
$key string
$value mixed
리턴 integer

put() 공개 메소드

Store an item in the cache for a given number of minutes.
public put ( string $key, mixed $value, $minutes ) : void
$key string
$value mixed
리턴 void

section() 공개 메소드

Begin executing a new section operation.
public section ( string $name ) : Illuminate\Cache\Section
$name string
리턴 Illuminate\Cache\Section

프로퍼티 상세

$kvdb 보호되어 있는 프로퍼티

The kvdb instance.
protected SaeKV $kvdb
리턴 SaeKV

$prefix 보호되어 있는 프로퍼티

A string that should be prepended to keys.
protected string $prefix
리턴 string