\Pop\Cache\AdapterApc

APC cache adapter class

Summary

Methods
Properties
Constants
__construct()
setLifetime()
save()
load()
remove()
clear()
isExpired()
getStart()
getExpiration()
getLifetime()
getInfo()
No public properties found
No constants found
No protected methods found
$lifetime
$info
N/A
No private methods found
No private properties found
N/A

Properties

$lifetime

$lifetime : integer

Cache lifetime

Type

integer

$info

$info : array

APC info

Type

array

Methods

__construct()

__construct(integer  $lifetime) : \Pop\Cache\Adapter\Apc

Constructor

Instantiate the APC cache object

Parameters

integer $lifetime

Throws

\Pop\Cache\Adapter\Exception

Returns

\Pop\Cache\Adapter\Apc

setLifetime()

setLifetime(integer  $lifetime) : \Pop\Cache\Adapter\AbstractAdapter

Set the lifetime.

Parameters

integer $lifetime

Returns

\Pop\Cache\Adapter\AbstractAdapter

save()

save(string  $id, mixed  $value) : \Pop\Cache\Adapter\Apc

Method to save a value to cache.

Parameters

string $id
mixed $value

Returns

\Pop\Cache\Adapter\Apc

load()

load(string  $id) : mixed

Method to load a value from cache.

Parameters

string $id

Returns

mixed

remove()

remove(string  $id) : \Pop\Cache\Adapter\Apc

Method to delete a value in cache.

Parameters

string $id

Returns

\Pop\Cache\Adapter\Apc

clear()

clear() : \Pop\Cache\Adapter\Apc

Method to clear all stored values from cache.

Returns

\Pop\Cache\Adapter\Apc

isExpired()

isExpired(string  $id) : boolean

Tell is a value is expired.

Parameters

string $id

Returns

boolean

getStart()

getStart(string  $id) : integer

Get original start timestamp of the value.

Parameters

string $id

Returns

integer

getExpiration()

getExpiration(string  $id) : integer

Get expiration timestamp of the value.

Parameters

string $id

Returns

integer

getLifetime()

getLifetime(string  $id) : integer

Get the lifetime of the value.

Parameters

string $id

Returns

integer

getInfo()

getInfo() : string

Method to get the current APC info.

Returns

string