Struct persistentcache::storage::file::FileStorage [] [src]

pub struct FileStorage { /* fields omitted */ }

FileStorage struct

Methods

impl FileStorage
[src]

[src]

Creates the path directory and returns a FileStorage struct.

Examples

use persistentcache::storage::file::FileStorage;

let s = FileStorage::new(".example_dir").unwrap();

Trait Implementations

impl PersistentCache for FileStorage
[src]

[src]

Returns the value corresponding to the variable name.

[src]

Writes the data of type &[u8] in array val to the file corresponding to the variable name.

[src]

Delete all variables stored in path (see new()) which start with PREFIX_.