RequestCache
in package
RequestCache工厂类
Tags
Table of Contents
- FILE = 1
- MEMCACHE = 2
- REDIS = 3
- $instance : FileCache|Memcache|RedisCache|RequestCacheInterface
- factory() : FileCache|Memcache|RedisCache|RequestCacheInterface
- RequestCache
Constants
FILE
public
mixed
FILE
= 1
MEMCACHE
public
mixed
MEMCACHE
= 2
REDIS
public
mixed
REDIS
= 3
Properties
$instance
public
static FileCache|Memcache|RedisCache|RequestCacheInterface
$instance
Methods
factory()
RequestCache
public
static factory(int|object|string $type, array<string|int, mixed> $options) : FileCache|Memcache|RedisCache|RequestCacheInterface
Parameters
- $type : int|object|string
- $options : array<string|int, mixed>