PHP Класс Microweber\Utils\Adapters\Cache\CacheStore

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$adapter Microweber\Utils\Adapters\Cache\Storage\FileStorage

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

Метод Описание
__construct ( $prefix = '' )
decrement ( string $key, mixed $value = 1 ) Increment the value of an item in the cache.
flush ( $all = false ) Remove all items from the cache.
forever ( string $key, mixed $value ) Store an item in the cache indefinitely.
forget ( string $key ) Remove an item from the cache.
forgetTags ( string $string ) Remove an item from the cache by tags.
get ( string $key ) : mixed Retrieve an item from the cache by key.
increment ( string $key, mixed $value = 1 ) Increment the value of an item in the cache.
put ( string $key, mixed $value, integer $minutes ) Store an item in the cache for a given number of minutes.
remember ( string $key, DateTime | integer $minutes, Closure $callback ) : mixed Get an item from the cache, or store the default value.
rememberForever ( string $key, Closure $callback ) : mixed Get an item from the cache, or store the default value forever.
setAdapter ( $adapter )
tags ( $tags ) : object Tags for cache.

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

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

public __construct ( $prefix = '' )

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

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

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

Remove all items from the cache.
public flush ( $all = false )

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

Store an item in the cache indefinitely.
public forever ( string $key, mixed $value )
$key string
$value mixed

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

Remove an item from the cache.
public forget ( string $key )
$key string

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

Remove an item from the cache by tags.
public forgetTags ( string $string )
$string string

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

Retrieve an item from the cache by key.
public get ( string $key ) : mixed
$key string
Результат mixed

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

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

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

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

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

Get an item from the cache, or store the default value.
public remember ( string $key, DateTime | integer $minutes, Closure $callback ) : mixed
$key string
$minutes DateTime | integer
$callback Closure
Результат mixed

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

Get an item from the cache, or store the default value forever.
public rememberForever ( string $key, Closure $callback ) : mixed
$key string
$callback Closure
Результат mixed

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

public setAdapter ( $adapter )

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

Tags for cache.
public tags ( $tags ) : object
Результат object

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

$adapter публичное свойство

public FileStorage,Microweber\Utils\Adapters\Cache\Storage $adapter
Результат Microweber\Utils\Adapters\Cache\Storage\FileStorage