MemcacheDriver
in package
Tags
Table of Contents
- $link : Memcache
- $defaultOptions : array<string|int, mixed>
- 集群参数默认配置
- __call() : mixed|null
- 调用Memcache类提供的方法
- __construct() : mixed
- MemcacheDriver constructor.
- get() : array<string|int, mixed>|string
- 从缓存中获取内容
Properties
$link
public
Memcache
$link
$defaultOptions
集群参数默认配置
protected
array<string|int, mixed>
$defaultOptions
= ['persistent' => true, 'weight' => 1, 'timeout' => 1, 'retry_interval' => 15, 'status' => true, 'failure_callback' => null]
Methods
__call()
调用Memcache类提供的方法
public
__call( $method, $argv) : mixed|null
Parameters
Return values
mixed|null —__construct()
MemcacheDriver constructor.
public
__construct(array<string|int, mixed> $option) : mixed
Parameters
- $option : array<string|int, mixed>
Tags
Return values
mixed —get()
从缓存中获取内容
public
get(string $key, int|array<string|int, mixed> &$flag) : array<string|int, mixed>|string
Parameters
- $key : string
- $flag : int|array<string|int, mixed>