vibe.db.redis.idioms

Type safe implementations of common Redis storage idioms.

Note that the API is still subject to change!

Members

Enums

RedisCollectionOptions
enum RedisCollectionOptions
Undocumented in source.

Functions

jsonEncoded
JsonEncoded!T jsonEncoded(T value)
Undocumented in source. Be warned that the author may not have intended to support it.
redisStrip
RedisStripped!(T, strip_id) redisStrip(T val)

Strips all non-Redis fields from a struct.

Structs

JsonEncoded
struct JsonEncoded(T)
Undocumented in source.
LazyString
struct LazyString(T...)
Undocumented in source.
RedisCollection
struct RedisCollection(T, RedisCollectionOptions OPTIONS = RedisCollectionOptions.defaults, size_t ID_LENGTH = 1)
RedisLock
struct RedisLock
Undocumented in source.
RedisObject
struct RedisObject(T)

Models a single strongly typed object.

RedisObjectField
struct RedisObjectField(T)
Undocumented in source.
RedisStripped
struct RedisStripped(T, bool strip_id = true)

Represents the stripped type of a struct.

Templates

RedisHashCollection
template RedisHashCollection(RedisCollectionOptions OPTIONS = RedisCollectionOptions.defaults, size_t ID_LENGTH = 1)

Models a set of numbered hashes.

RedisListCollection
template RedisListCollection(T, RedisCollectionOptions OPTIONS = RedisCollectionOptions.defaults, size_t ID_LENGTH = 1)

Models a strongly typed numbered set of values.

RedisObjectCollection
template RedisObjectCollection(T, RedisCollectionOptions OPTIONS = RedisCollectionOptions.defaults, size_t ID_LENGTH = 1)

Models a strongly typed set of numbered hashes.

RedisSetCollection
template RedisSetCollection(T, RedisCollectionOptions OPTIONS = RedisCollectionOptions.defaults, size_t ID_LENGTH = 1)

Models a strongly typed numbered set of values.

RedisStringCollection
template RedisStringCollection(T = string, RedisCollectionOptions OPTIONS = RedisCollectionOptions.defaults, size_t ID_LENGTH = 1)

Models a strongly typed numbered set of values.

Meta

License

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

Authors

Sönke Ludwig