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

Parameters

int $depth

Return Value

float|false

at line 33
bool flush(bool $async = true)

Flush the smart cache.

Parameters

bool $async

Return Value

bool

at line 42
array|false stats(string $key)

Get stats for a key

Parameters

string $key

Return Value

array|false

at line 53
bool incrBy(string $key, bool $write, int $count)

Increment a keys counter for either reads or writes

Parameters

string $key
bool $write
int $count

Return Value

bool