FacturaScripts

APCAdapter implements AdaptorInterface

Class to connect and interact with APC.

Table of Contents

clear() Flush all cache. bool
delete() Delete data from cache. bool
get() Get the data associated with a key. mixed
set() Put content into the cache. bool

Methods

clear()

Flush all cache.

public clear( ) : bool
Return values
bool

always true

delete()

Delete data from cache.

public delete( $key : string ) : bool
Parameters
$key : string
Return values
bool

true if the data was removed successfully

get()

Get the data associated with a key.

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

the content you put in, or null if expired or not found

set()

Put content into the cache.

public set( $key : string , $content : mixed , $expire : int ) : bool
Parameters
$key : string
$content : mixed

the the content you want to store

$expire : int

time to expire

Return values
bool

whether if the operation was successful or not

Search results