\Orpheus\CacheAPCache

The APC cache class Uses APC feature to cache data.

This class is useful for perishable data. So, it requires the APC lib to be installed on the server. Look for php-apc package for Linux. http://php.net/manual/en/book.apc.php

Summary

Methods
Properties
Constants
__construct()
get()
set()
reset()
clear()
No public properties found
No constants found
No protected methods found
$key
$ttl
$APCavailable
N/A
No private methods found
No private properties found
N/A

Properties

$key

$key : string

the key

Type

string

$ttl

$ttl : integer

The time to live

Type

integer

$APCavailable

$APCavailable : 

Type

Warning: Missing argument 1 for phpDocumentor\Descriptor\Collection::get(), called in H:\Workspaces\git\orpheus-doc\vendor\twig\twig\lib\Twig\Template.php on line 672 and defined in H:\Workspaces\git\orpheus-doc\vendor\phpdocumentor\phpdocumentor\src\phpDocumentor\Descriptor\Collection.php on line 72 Notice: Undefined variable: index in H:\Workspaces\git\orpheus-doc\vendor\phpdocumentor\phpdocumentor\src\phpDocumentor\Descriptor\Collection.php on line 74 Notice: Undefined variable: index in H:\Workspaces\git\orpheus-doc\vendor\phpdocumentor\phpdocumentor\src\phpDocumentor\Descriptor\Collection.php on line 78

Methods

__construct()

__construct(string  $class, string  $name, integer  $ttl) 

Constructor

Parameters

string $class

The class of the cache

string $name

The name of this cache

integer $ttl

The time to live in seconds, the delay the cache expires for. Default value is 0 (manual delete only).

get()

get(mixed  $cached) : boolean

Get the cache for the given parameters

Parameters

mixed $cached

The output to get the cache

Returns

boolean —

True if cache has been retrieved

This method uses the apc_fetch() function. The type is preserved, even for objects.

set()

set(mixed  $data) : boolean

Set the cache for the given parameters

Parameters

mixed $data

The data to put in the cache

Returns

boolean —

True if cache has been saved

This method uses the apc_store() function.

reset()

reset() : boolean

Reset the cache

Returns

boolean —

True in case of success

clear()

clear() : boolean

Clear the cache

Returns

boolean —

True in case of success

This method uses the apc_delete() function.