PHP Класс Lavender\Cloud\Sina\Cache\KvdbStore

Наследование: implements Illuminate\Cache\StoreInterface
Показать файл Открыть проект

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

Свойство Тип Описание
$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