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

pub struct FileStorage { /* fields omitted */ }

FileStorage struct

Methods

impl FileStorage
[src]

Creates the path directory and returns a FileStorage struct.

Example

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

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

Trait Implementations

impl PersistentCache for FileStorage
[src]

Returns the value corresponding to the variable name.

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

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

Auto Trait Implementations

impl Send for FileStorage

impl Sync for FileStorage