Toggle navigation
Hot Examples
FR
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Rechercher
Accueil
lithium
storage
cache
strategy
Json
PHP Class lithium\storage\cache\strategy\Json
Inheritance:
extends
lithium\core\Object
Afficher le fichier
Open project: unionofrad/lithium
Méthodes publiques
Méthode
Description
read
(
string
$data
) :
mixed
Read strategy method.
write
(
mixed
$data
) :
string
Write strategy method.
Method Details
read()
public
méthode
Decodes JSON data and returns an array or object structure.
See link:
PHP Manual: json_decode()
public
read
(
string
$data
) :
mixed
$data
string
Serialized data.
Résultat
mixed
Result of unserialization.
write()
public
méthode
Encodes the passed data from an array to JSON format.
See link:
PHP Manual: json_encode()
public
write
(
mixed
$data
) :
string
$data
mixed
The data to be encoded.
Résultat
string
The encoded data.