SmartCache
class SmartCache
Properties
int | $width | The underlying count-min sketch width |
|
int | $depth | The underlying count-min sketch depth |
Methods
__construct()
No description
float|false
loadFactor(int $depth = 1)
Get the estimated smart cache load factor
bool
flush(bool $async = true)
Flush the smart cache.
array|false
stats(string $key)
Get stats for a key
bool
incrBy(string $key, bool $write, int $count)
Increment a keys counter for either reads or writes
Details
at line 17
protected
__construct()
No description
at line 24
float|false
loadFactor(int $depth = 1)
Get the estimated smart cache load factor
at line 33
bool
flush(bool $async = true)
Flush the smart cache.
at line 42
array|false
stats(string $key)
Get stats for a key
at line 53
bool
incrBy(string $key, bool $write, int $count)
Increment a keys counter for either reads or writes