class ApcWrapper (View source)

Methods

mixed
get(string $key)

Get an item from the cache.

bool
put(string $key, mixed $value, int $seconds)

Store an item in the cache.

int|false
increment(string $key, int $value)

Increment the value of an item in the cache.

int|false
decrement(string $key, int $value)

Decrement the value of an item in the cache.

bool
delete(string $key)

Remove an item from the cache.

bool
flush()

Remove all items from the cache.

Details

mixed get(string $key)

Get an item from the cache.

Parameters

string $key

Return Value

mixed

bool put(string $key, mixed $value, int $seconds)

Store an item in the cache.

Parameters

string $key
mixed $value
int $seconds

Return Value

bool

int|false increment(string $key, int $value)

Increment the value of an item in the cache.

Parameters

string $key
int $value

Return Value

int|false

int|false decrement(string $key, int $value)

Decrement the value of an item in the cache.

Parameters

string $key
int $value

Return Value

int|false

bool delete(string $key)

Remove an item from the cache.

Parameters

string $key

Return Value

bool

bool flush()

Remove all items from the cache.

Return Value

bool