\Core\Common\HandlerModelCacheFileHandler

Summary

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

Properties

$storePath

$storePath : string

Type

string

$config

$config : \Hyperf\ModelCache\Config

Type

\Hyperf\ModelCache\Config

$container

$container : \Psr\Container\ContainerInterface

Type

\Psr\Container\ContainerInterface

$prefix

$prefix : string

Type

string

$packer

$packer : \Core\Common\Handler\PackerInterface

Type

\Core\Common\Handler\PackerInterface

Methods

__construct()

__construct(\Psr\Container\ContainerInterface  $container, \Hyperf\ModelCache\Config  $config) 

Parameters

\Psr\Container\ContainerInterface $container
\Hyperf\ModelCache\Config $config

getCacheKey()

getCacheKey(\Core\Common\Handler\string  $key) 

Parameters

\Core\Common\Handler\string $key

get()

get(  $key,   $default = null) 

Parameters

$key
$default

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

getConfig()

getConfig() 

incr()

incr(  $key,   $column,   $amount) 

Parameters

$key
$column
$amount

clearFileCache()

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

Parameters

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

getStorePathLevel()

getStorePathLevel(  $key = null) 

Parameters

$key

getPrefix()

getPrefix()