I took a lot of inspiration from redisstore since both are key value stores. And both have direct TTL support for values.
Talking about TTL: Badger only supports TTL values >= one second. This means, the tests take about two seconds. One second for TTL, and two seconds for the time.Wait(). With values below one second the test may or may not pass. It's a random outcome.
Alright,
badgerstore
is finished. 🎉I took a lot of inspiration from
redisstore
since both are key value stores. And both have direct TTL support for values.Talking about TTL: Badger only supports TTL values >= one second. This means, the tests take about two seconds. One second for TTL, and two seconds for the
time.Wait()
. With values below one second the test may or may not pass. It's a random outcome.Sub-second TTL is planned for version 2 though.