vibe.db.redis.types

Convenience wrappers types for accessing Redis keys.

Note that the API is still subject to change!

Members

Enums

RedisType
enum RedisType

The type of a Redis key.

Functions

fromRedis
T fromRedis(string value)

Converts a Redis value back to its original representation.

getAsHash
RedisHash!T getAsHash(RedisDatabase db, string key)

Returns a handle to a hash type value.

getAsList
RedisList!T getAsList(RedisDatabase db, string key)

Returns a handle to a list type value.

getAsSet
RedisSet!T getAsSet(RedisDatabase db, string key)

Returns a handle to a set type value.

getAsString
RedisString!T getAsString(RedisDatabase db, string key)

Returns a handle to a string type value.

getAsZSet
RedisZSet!T getAsZSet(RedisDatabase db, string key)

Returns a handle to a set type value.

toRedis
string toRedis(T value)
void toRedis(R dst, T value)

Converts the given value to a binary/string representation suitable for Redis storage.

Structs

RedisHash
struct RedisHash(T = string)

Represents a Redis hash value.

RedisList
struct RedisList(T = string)

Represents a Redis list value.

RedisSet
struct RedisSet(T = string)

Represents a Redis set value.

RedisString
struct RedisString(T = string)

Represents a Redis string value.

RedisValue
struct RedisValue

Represents a generic Redis value.

RedisZSet
struct RedisZSet(T = string)

Represents a Redis sorted set value.

Meta

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.

Authors

Sönke Ludwig