Struct redis_glue::Redis [−][src]
pub struct Redis { /* fields omitted */ }
A Redis Client Object that encapsulates RedisClient and RedisConnection. Use this when you need a Redis Client
Implementations
impl Redis
[src]
impl Redis
[src]pub async fn new(redis: RedisConfig) -> RedisResult<Self>
[src]
create new Redis. Will try to connect to Redis instance specified in RedisConfig
pub fn get_client(&self) -> RedisConnection
[src]
Get client to do interact with Redis server.
Uses Interior mutability so look out for panics