Documentation

Horde_Autoloader_Cache_Bootstrap

Bootstrap cache storage driver.

Used for caching autoloader data before the full autoloader environment is setup. Transparently compresses the data if possible also.

Tags
author

Jan Schneider jan@horde.org

author

Michael Slusarz slusarz@horde.org

category

Horde

copyright

2011-2017 Horde LLC

license

http://www.horde.org/licenses/lgpl21 LGPL 2.1

since
2.1.0

Table of Contents

APC  = 1
EACCELERATOR  = 4
JSON  = 128
LZ4  = 16
LZF  = 32
MSGPACK  = 64
TEMPFILE  = 8
XCACHE  = 2
$_mask  : array<string|int, mixed>
The storage parameters mask.
$_tempdir  : string
Temporary directory.
__construct()  : mixed
Constructor.
delete()  : mixed
Delete a key.
get()  : mixed
Return cached data.
set()  : bool
Set cached data.

Constants

Properties

$_mask

The storage parameters mask.

protected array<string|int, mixed> $_mask = 0

$_tempdir

Temporary directory.

protected string $_tempdir

Methods

__construct()

Constructor.

public __construct([array<string|int, mixed> $opts = array() ]) : mixed
Parameters
$opts : array<string|int, mixed> = array()

Options:

  • tempdir: (string) Use this path as the temporary directory.
Return values
mixed

delete()

Delete a key.

public delete(string $key) : mixed
Parameters
$key : string

Cache key.

Return values
mixed

get()

Return cached data.

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

Cache key.

Return values
mixed

Cache data, or false if not found.

set()

Set cached data.

public set(string $key, mixed $data) : bool
Parameters
$key : string

Cache key.

$data : mixed

Data to store.

Return values
bool

True on success, false on failure.

Search results