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
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
APC
public
mixed
APC
= 1
EACCELERATOR
public
mixed
EACCELERATOR
= 4
JSON
public
mixed
JSON
= 128
LZ4
public
mixed
LZ4
= 16
LZF
public
mixed
LZF
= 32
MSGPACK
public
mixed
MSGPACK
= 64
TEMPFILE
public
mixed
TEMPFILE
= 8
XCACHE
public
mixed
XCACHE
= 2
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.