\Framework\CacheThinkAdapter

Summary

Methods
Properties
Constants
setPrefix()
__construct()
get()
set()
has()
delete()
clear()
getMultiple()
setMultiple()
deleteMultiple()
No public properties found
No constants found
formatKey()
$defaultTtl
$prefix
$driver
N/A
No private methods found
No private properties found
N/A

Properties

$defaultTtl

$defaultTtl : int

Type

int

$prefix

$prefix : string

Type

string

$driver

$driver : \think\contract\CacheHandlerInterface|\think\cache\Driver

Type

Driver

Methods

setPrefix()

setPrefix(string  $prefix) : void

Parameters

string $prefix

__construct()

__construct(\think\contract\CacheHandlerInterface|\think\cache\Driver  $cache) : mixed

Parameters

\think\contract\CacheHandlerInterface|\think\cache\Driver $cache

Returns

mixed —

get()

get(string  $key, mixed  $default = null) : mixed

Parameters

string $key
mixed $default

Returns

mixed —

set()

set(string  $key, mixed  $value, \DateInterval|int|null  $ttl = null) : bool

Parameters

string $key
mixed $value
\DateInterval|int|null $ttl

Returns

bool —

has()

has(string  $key) : bool

Parameters

string $key

Returns

bool —

delete()

delete(string  $key) : bool

Parameters

string $key

Returns

bool —

clear()

clear() : bool

Returns

bool —

getMultiple()

getMultiple(iterable  $keys, mixed  $default = null) : iterable

Parameters

iterable $keys
mixed $default

Returns

iterable —

setMultiple()

setMultiple(iterable  $values, \DateInterval|int|null  $ttl = null) : bool

Parameters

iterable $values
\DateInterval|int|null $ttl

Returns

bool —

deleteMultiple()

deleteMultiple(iterable  $keys) : bool

Parameters

iterable $keys

Returns

bool —

formatKey()

formatKey(string  $key) : string

Parameters

string $key

Returns

string —