\Core\Common\DriverCacheDriver

CacheDriver 缓存驱动 package Core\Common\HF date 2020-01-07

Summary

Methods
Properties
Constants
__construct()
getCacheKey()
get()
fetch()
set()
delete()
clear()
getMultiple()
setMultiple()
deleteMultiple()
has()
clearPrefix()
__call()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
getCacheInstance()
$cacheInstance
N/A

Properties

$cacheInstance

$cacheInstance : 

Type

Methods

__construct()

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

Parameters

\Psr\Container\ContainerInterface $container
array $config

getCacheKey()

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

Parameters

\Core\Common\Driver\string $key

get()

get(  $key,   $default = null) 

Parameters

$key
$default

fetch()

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

Parameters

\Core\Common\Driver\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\Driver\string  $prefix) 

Parameters

\Core\Common\Driver\string $prefix

__call()

__call(  $name,   $arguments) 

Parameters

$name
$arguments

getCacheInstance()

getCacheInstance(mixed  $driver, \Psr\Container\ContainerInterface  $container, array  $config) : \Core\Common\Driver\class

getCacheInstance 获取缓存驱动实例

Parameters

mixed $driver
\Psr\Container\ContainerInterface $container
array $config

Returns

\Core\Common\Driver\class —

Date: 2020-01-07 Created by YQ