fileServer

package

jelix

Methods

__construct

__construct( $directory) 

Arguments

$directory

delete

delete(string $key) : boolean

Arguments

$key

string

a key (unique name) to identify the cached info

Response

boolean

whether the action was successful or not

flush

flush() : boolean

Response

boolean

whether the action was successful or not

get

get(string $key) : \mixed,false

Arguments

$key

string

the key (unique name) that identify the cached info

Response

\mixed,false

false if the cached info does not exist or has expired or the data if the info exists and is valid

set

set(string $key, mixed $value, integer $ttl) : boolean

Arguments

$key

string

a key (unique name) to identify the cached info

$value

mixed

the value to cache

$ttl

integer

how many seconds will the info be cached

Response

boolean

whether the action was successful or not

Properties

dir

dir : 

Type(s)