프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$directory | The directory to store the data files in. |
메소드 | 설명 | |
---|---|---|
__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 |
메소드 | 설명 | |
---|---|---|
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 |
리턴 | string | A file path |