Jelix 1.8.13

fileServer
in package

Tags

Table of Contents

$dir  : mixed
__construct()  : mixed
delete()  : bool
delete.
flush()  : bool
flush.
get()  : false|mixed
get.
set()  : bool
set.

Properties

Methods

__construct()

public __construct(mixed $directory) : mixed
Parameters
$directory : mixed
Tags
Return values
mixed

delete()

delete.

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

a key (unique name) to identify the cached info

Tags
Return values
bool

whether the action was successful or not

flush()

flush.

public flush() : bool
Tags
Return values
bool

whether the action was successful or not

get()

get.

public get(string $key) : false|mixed
Parameters
$key : string

the key (unique name) that identify the cached info

Tags
Return values
false|mixed

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

set()

set.

public set(string $key, mixed $value, int $ttl) : bool
Parameters
$key : string

a key (unique name) to identify the cached info

$value : mixed

the value to cache

$ttl : int

how many seconds will the info be cached

Tags
Return values
bool

whether the action was successful or not

Search results