Property | Type | Description | |
---|---|---|---|
$directory | The directory to store the data files in. |
Method | Description | |
---|---|---|
__construct ( $directory ) | ||
get ( string $key ) : mixed | Reads retrieves data from the store | |
has ( string $key ) : boolean | Checks if a key is in the store | |
keys ( ) : array | Return a list of all keys in the store. | |
remove ( string $key ) | Remove value from the store | |
set ( string $key, mixed $data ) | Saves a value with the given key |
Method | Description | |
---|---|---|
cleanKey ( $key ) : mixed | Make the file path safe by whitelisting characters. | |
getFileName ( string $key ) : string | Get a valid file name for the given key. |
protected getFileName ( string $key ) : string | ||
$key | string | The data key to be written or read |
return | string | A file path |