Documentation

ApcWrapper
in package

Table of Contents

$apcu  : bool
Indicates if APCu is supported.
__construct()  : void
Create a new APC wrapper instance.
decrement()  : int|bool
Decrement the value of an item in the cache.
delete()  : bool
Remove an item from the cache.
flush()  : bool
Remove all items from the cache.
get()  : mixed
Get an item from the cache.
increment()  : int|bool
Increment the value of an item in the cache.
put()  : array<string|int, mixed>|bool
Store an item in the cache.

Properties

$apcu

Indicates if APCu is supported.

protected bool $apcu = false

Methods

__construct()

Create a new APC wrapper instance.

public __construct() : void
Return values
void

decrement()

Decrement the value of an item in the cache.

public decrement(string $key, mixed $value) : int|bool
Parameters
$key : string
$value : mixed
Return values
int|bool

delete()

Remove an item from the cache.

public delete(string $key) : bool
Parameters
$key : string
Return values
bool

flush()

Remove all items from the cache.

public flush() : bool
Return values
bool

get()

Get an item from the cache.

public get(string $key) : mixed
Parameters
$key : string
Return values
mixed

increment()

Increment the value of an item in the cache.

public increment(string $key, mixed $value) : int|bool
Parameters
$key : string
$value : mixed
Return values
int|bool

put()

Store an item in the cache.

public put(string $key, mixed $value, int $seconds) : array<string|int, mixed>|bool
Parameters
$key : string
$value : mixed
$seconds : int
Return values
array<string|int, mixed>|bool

Search results