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

pub struct RedisStorage { /* fields omitted */ }

RedisStorage struct holds a redis::Connection variable.

Methods

impl RedisStorage
[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.

Example

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

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

Trait Implementations

impl PersistentCache for RedisStorage
[src]

Returns the value within the Redis variable name.

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

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

Auto Trait Implementations

impl Send for RedisStorage

impl !Sync for RedisStorage