FacturaScripts

Cache
in package

Tags
author

Carlos García Gómez [email protected]

Table of Contents

EXPIRATION  = 3600
FILE_PATH  = '/MyFiles/Tmp/FileCache'
clear()  : void
delete()  : void
deleteMulti()  : void
expire()  : void
get()  : mixed
remember()  : mixed
Obtenemos el valor almacenado si existe o por el contrario almacenamos lo que devuelva la funcion callback.
set()  : void
filename()  : string

Constants

EXPIRATION

public mixed EXPIRATION = 3600

FILE_PATH

public mixed FILE_PATH = '/MyFiles/Tmp/FileCache'

Methods

clear()

public static clear() : void
Return values
void

delete()

public static delete(string $key) : void
Parameters
$key : string
Return values
void

deleteMulti()

public static deleteMulti(string $prefix) : void
Parameters
$prefix : string
Return values
void

expire()

public static expire() : void
Return values
void

get()

public static get(string $key) : mixed
Parameters
$key : string
Return values
mixed

remember()

Obtenemos el valor almacenado si existe o por el contrario almacenamos lo que devuelva la funcion callback.

public static remember(string $key, Closure $callback) : mixed
Parameters
$key : string
$callback : Closure
Return values
mixed

set()

public static set(string $key, mixed $value) : void
Parameters
$key : string
$value : mixed
Return values
void

filename()

private static filename(string $key) : string
Parameters
$key : string
Return values
string

Search results