\Core\Common\DriverModelCacheDriver

ModelCacheDriver 数据模型缓存驱动 package Core\Common\HF date 2020-01-07

Summary

Methods
Properties
Constants
__construct()
get()
set()
delete()
clear()
getMultiple()
setMultiple()
deleteMultiple()
has()
getConfig()
incr()
__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, \Hyperf\ModelCache\Config  $config) 

Parameters

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

get()

get(  $key,   $default = null) 

Parameters

$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

getConfig()

getConfig() 

incr()

incr(  $key,   $column,   $amount) 

Parameters

$key
$column
$amount

__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