\thinkCache

Summary

Methods
Properties
Constants
__construct()
connect()
init()
store()
__call()
No public properties found
No constants found
No protected methods found
$instance
$app
$handler
N/A
No private methods found
No private properties found
N/A

Properties

$instance

$instance : array

缓存实例

Type

array

$app

$app : \think\App

应用对象

Type

\think\App

$handler

$handler : object

操作句柄

Type

object

Methods

__construct()

__construct(\think\App  $app) 

Parameters

\think\App $app

connect()

connect(array  $options = array(), boolean|string  $name = false) : \think\cache\Driver

连接缓存

Parameters

array $options

配置数组

boolean|string $name

缓存连接标识 true 强制重新连接

Returns

\think\cache\Driver

init()

init(array  $options = array()) : \think\cache\Driver

自动初始化缓存

Parameters

array $options

配置数组

Returns

\think\cache\Driver

store()

store(string  $name = '') : \think\cache\Driver

切换缓存类型 需要配置 cache.type 为 complex

Parameters

string $name

缓存标识

Returns

\think\cache\Driver

__call()

__call(  $method,   $args) 

Parameters

$method
$args