PHP Class SlightPHP\Cache_APC

Inheritance: extends CacheObject
Show file Open project: hetao29/slightphp

Public Methods

Method Description
del ( string $key ) : boolean delete cache
get ( string $key ) : mixed get cache
init ( $params = [] )
set ( string $key, mixed $value, integer $timestamp ) : boolean set cache

Method Details

del() public method

delete cache
public del ( string $key ) : boolean
$key string
return boolean

get() public method

get cache
public get ( string $key ) : mixed
$key string
return mixed $result

init() public method

public init ( $params = [] )

set() public method

set cache
public set ( string $key, mixed $value, integer $timestamp ) : boolean
$key string
$value mixed
$timestamp integer default:-1 forever
return boolean