\Core\Common\HandlerCacheFileHandler

CacheFileHandler 文件缓存

Summary

Methods
Properties
Constants
__construct()
getCacheKey()
get()
fetch()
set()
delete()
clear()
getMultiple()
setMultiple()
deleteMultiple()
has()
clearPrefix()
No public properties found
No constants found
clearFileCache()
getStorePathLevel()
getPrefix()
$storePath
N/A
No private methods found
No private properties found
N/A

Properties

$storePath

$storePath : string

Type

string — 文件缓存目录

Methods

__construct()

__construct(\Psr\Container\ContainerInterface  $container, array  $config) 

Parameters

\Psr\Container\ContainerInterface $container
array $config

getCacheKey()

getCacheKey(string  $key) : string

getCacheKey 获取缓存完成路径文件名称

Parameters

string $key

Returns

string —

Date: 2020-01-03 Created by YQ

get()

get(mixed  $key, mixed  $default = null) : mixed

get 获取缓存内容

Parameters

mixed $key
mixed $default

Returns

mixed —

Date: 2020-01-03 Created by YQ

fetch()

fetch(\Core\Common\Handler\string  $key,   $default = null) 

Parameters

\Core\Common\Handler\string $key
$default

set()

set(  $key,   $value,   $ttl = null) 

Parameters

$key
$value
$ttl

delete()

delete(  $key) 

Parameters

$key

clear()

clear() 

getMultiple()

getMultiple(  $keys,   $default = null) 

Parameters

$keys
$default

setMultiple()

setMultiple(  $values,   $ttl = null) 

Parameters

$values
$ttl

deleteMultiple()

deleteMultiple(  $keys) 

Parameters

$keys

has()

has(  $key) 

Parameters

$key

clearPrefix()

clearPrefix(\Core\Common\Handler\string  $prefix) 

Parameters

\Core\Common\Handler\string $prefix

clearFileCache()

clearFileCache(  $path, \Core\Common\Handler\string  $prefix) 

Parameters

$path
\Core\Common\Handler\string $prefix

getStorePathLevel()

getStorePathLevel(  $key = null) 

Parameters

$key

getPrefix()

getPrefix()