What version of Go are you using (go version
)?
$ go version go version go1.14 linux/amd64
What operating system are you using?
Linux
What version of Badger are you using?
v2
Does this issue reproduce with the latest master?
yes.
Steps to Reproduce the issue
I would like to see Entry.WithExpiresAt() API, which is currently missing.
This is not critical, as I can manually set it by manipulating ExpiresAt field.
However, this API is desired to keep API more consistent and uniform, and there is simply no risk adding it.
What Badger options were set?
What did you do?
What did you expect to see?
I can directly set expiration with Entry APIs, even better, in a cascading fashion.
for example,
NewEntry(“key”, “value”).WithMeta(0).WithExpiresAt(10000)