\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.

Summary

Methods
Properties
Constants
__construct()
get()
set()
delete()
No public properties found
APC
XCACHE
EACCELERATOR
TEMPFILE
LZ4
LZF
MSGPACK
JSON
No protected methods found
$_mask
$_tempdir
N/A
No private methods found
No private properties found
N/A

Constants

APC

APC

XCACHE

XCACHE

EACCELERATOR

EACCELERATOR

TEMPFILE

TEMPFILE

LZ4

LZ4

LZF

LZF

MSGPACK

MSGPACK

JSON

JSON

Properties

$_mask

$_mask : array

The storage parameters mask.

Type

array

$_tempdir

$_tempdir : string

Temporary directory.

Type

string

Methods

__construct()

__construct(array  $opts = array()) 

Constructor.

Parameters

array $opts

Options:

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

get()

get(string  $key) : mixed

Return cached data.

Parameters

string $key

Cache key.

Returns

mixed —

Cache data, or false if not found.

set()

set(string  $key, mixed  $data) : boolean

Set cached data.

Parameters

string $key

Cache key.

mixed $data

Data to store.

Returns

boolean —

True on success, false on failure.

delete()

delete(string  $key) 

Delete a key.

Parameters

string $key

Cache key.