Skip to main content

Crate vld_redis

Crate vld_redis 

Source
Expand description

§vld-redis

Redis integration for vld.

§Overview

vld-redis keeps one entrypoint macro:

  • impl_to_redis!(conn)

After rebinding, conn becomes a validating wrapper with auto conversion for:

  • set/get
  • mset/mget
  • hset/hget
  • lpush/rpush/lpop/rpop
  • sadd/smembers
  • zadd/zrange
  • publish

All other native Redis methods are still available through deref to the inner connection.

Re-exports§

pub use vld;

Modules§

prelude

Macros§

impl_to_redis
Rebind Redis connection into vld-aware connection with native-like calls.

Structs§

RedisConn
Redis connection wrapper with validate+JSON behavior.

Enums§

VldRedisError