Struct persistentcache::storage::redis::RedisStorage [] [src]

pub struct RedisStorage { /* fields omitted */ }

RedisStorage struct holds a redis::Connection variable.

Methods

impl RedisStorage
[src]

[src]

Connects to the Redis server listening at host and constructs a new RedisStorage struct.

This will fail in case there is no redis server running.

Examples

use persistentcache::storage::redis::RedisStorage;

let s = RedisStorage::new("redis://127.0.0.1").unwrap();

Trait Implementations

impl PersistentCache for RedisStorage
[src]

[src]

Returns the value within the Redis variable name.

[src]

Sets the Redis variable name to the array val of type &[u8].

[src]

Delete all variables stored in the Redis database which start with PREFIX_.