PHP Класс Microweber\Utils\Adapters\Cache\Storage\FileStorage

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

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

Свойство Тип Описание
$deleted_tags
$memory

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

Свойство Тип Описание
$directory
$directoryTags
$files
$prefix
$tags

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

Метод Описание
__construct ( $prefix = '' )
appendLocale ( $key )
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.
getDirectory ( ) : string Get the working directory of the cache.
getFilesystem ( ) : Illuminate\Filesystem\Filesystem Get the Filesystem instance.
getPrefix ( ) : string Get the cache key prefix.
increment ( string $key, mixed $value = 1 ) Increment the value of an item in the cache.
mkdir_recursive ( $pathname )
normalize_path ( $path, $slash_it = true )
put ( string $key, mixed $value, integer $minutes ) Store an item in the cache for a given number of minutes.
reduce_double_slashes ( $str )
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.
rmdir ( $directory, $empty = true )
tags ( $tags ) : object Tags for cache.

Защищенные методы

Метод Описание
createCacheDirectory ( string $path ) Create the file cache directory if necessary.
expiration ( integer $minutes ) : integer Get the expiration time based on the given minutes.
path ( string $key ) : string Get the full path for the given cache key.

Приватные методы

Метод Описание
_setTags ( string $path ) Save Tags for cache.

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

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

public __construct ( $prefix = '' )

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

public appendLocale ( $key )

createCacheDirectory() защищенный Метод

Create the file cache directory if necessary.
protected createCacheDirectory ( string $path )
$path string

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

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

expiration() защищенный Метод

Get the expiration time based on the given minutes.
protected expiration ( integer $minutes ) : integer
$minutes integer
Результат integer

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

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

Get the working directory of the cache.
public getDirectory ( ) : string
Результат string

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

Get the Filesystem instance.
public getFilesystem ( ) : Illuminate\Filesystem\Filesystem
Результат Illuminate\Filesystem\Filesystem

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 )
$key string
$value mixed

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

public mkdir_recursive ( $pathname )

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

public normalize_path ( $path, $slash_it = true )

path() защищенный Метод

Get the full path for the given cache key.
protected path ( string $key ) : string
$key string
Результат string

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

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

public reduce_double_slashes ( $str )

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

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

public rmdir ( $directory, $empty = true )

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

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

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

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

public $deleted_tags

$directory защищенное свойство

protected $directory

$directoryTags защищенное свойство

protected $directoryTags

$files защищенное свойство

protected $files

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

public $memory

$prefix защищенное свойство

protected $prefix

$tags защищенное свойство

protected $tags