PHP 클래스 Microweber\Utils\Adapters\Cache\CacheStore

파일 보기 프로젝트 열기: microweber/microweber

공개 프로퍼티들

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