CachePdo
in package
implements
CacheInterface
Description of CachePdo
Tags
Table of Contents
Interfaces
Properties
Methods
- __construct() : mixed
- delete() : void
- get() : CacheItem|false
- getKeys() : array<string|int, string>
- set() : int
- maintainDb() : void
Properties
$driver
private
string
$driver
$lockPath
private
string
$lockPath
$pdo
private
PDO
$pdo
Methods
__construct()
public
__construct(string $connString[, string|null $cacheId = null ]) : mixed
Parameters
- $connString : string
- $cacheId : string|null = null
delete()
public
delete(string $keyLike) : void
Parameters
- $keyLike : string
get()
public
get(string $key) : CacheItem|false
Parameters
- $key : string
Return values
CacheItem|falsegetKeys()
public
getKeys(string $key) : array<string|int, string>
Parameters
- $key : string
Return values
array<string|int, string>set()
public
set(array<string|int, mixed> $keys, string $value, int|null $id) : int
Parameters
- $keys : array<string|int, mixed>
- $value : string
- $id : int|null
Return values
intmaintainDb()
private
maintainDb() : void