fileServer
in package
Table of Contents
- $dir : mixed
- __construct() : mixed
- delete() : bool
- delete.
- flush() : bool
- flush.
- get() : false|mixed
- get.
- set() : bool
- set.
Properties
$dir
protected
mixed
$dir
Methods
__construct()
public
__construct(mixed $directory) : mixed
Parameters
- $directory : mixed
Return values
mixed —delete()
delete.
public
delete(string $key) : bool
Parameters
- $key : string
-
a key (unique name) to identify the cached info
Return values
bool —whether the action was successful or not
flush()
flush.
public
flush() : bool
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
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
Return values
bool —whether the action was successful or not