$path
$path :
Path where the JSON files are located, in redis used as key prefix
A JSON Reader, storage using json files, as defined in Reader.
A index is a array of json keys: { "a" : { "b" : 12 } } ["a", "b"] => 12
__construct( $filename, $lockex = false, $otherpath = '')
Creates a JSON Reader, opens and imports file if files exists.
else creates a new file. Opens parent::$path/$filename, $filename contain a folder and a file (parent::$path/myfolder/myfile). Then myfolder has to be created before!
$filename | the filename, without .json |
|
$lockex | lock the file exclusive, if yo |
|
$otherpath | use another path than parent::$path |