PHP Class SlightPHP\Cache_File

Inheritance: extends CacheObject
显示文件 Open project: hetao29/slightphp

Public Properties

Property Type Description
$depth integer cache dir depth
$dir string cache dir

Public Methods

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

Private Methods

Method Description
_getDir ( $key, $mk = false )

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

init
public init ( array $params = [] )
$params array array("dir","depth")

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

Property Details

$depth public_oe property

cache dir depth
public int $depth
return integer

$dir public_oe property

cache dir
public string $dir
return string