14 releases (9 breaking)

Uses new Rust 2021

0.10.0 Aug 5, 2022
0.9.0 Jul 31, 2022
0.8.1 Jul 30, 2022

#21 in Database implementations

Download history 20/week @ 2022-06-19 110/week @ 2022-06-26 17/week @ 2022-07-03 9/week @ 2022-07-10 7/week @ 2022-07-17 126/week @ 2022-07-24 115/week @ 2022-07-31 32/week @ 2022-08-07

280 downloads per month

MIT license

185KB
5K SLoC

Wörterbuch

Wörterbuch is a purely in-memory key/value store that solves a use case somewhere between a database and a message broker. You can think of it as an alternative to MQTT where you can simply look up messages without having to make a subscription or an alternative to Redis where any SET operation automatically produces a pub/sub message with the key as channel and value as message.

Keys are hierarchical paths in Wörterbuch, similarly to topics in MQTT. The default separator is a /, so a key looks something like some/worterbuch/key. Values can be retrieved by looking up the key or subscribing to it. In both cases wildcards are supported. The default single level wildcard is ?, the default multi level wildcard is # (all of these can be configured).

Getting my/key/# would return a map of all key/value pairs where the key starts with my/key/, subscribing to my/key/# will produce events for each key/value pair already in store where the key starts with my/key/ and subsequently an additional event for each SET operation for a key that starts with my/key/.

Dependencies

~7–17MB
~339K SLoC