Entry.WithExpiresAt() is missing

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)

What did you see instead?

Hey @yangzh,

There is already an API, WithTTL() for setting the ExpiresAt value for an entry. Check it out here.

thanks, @ahsan for the quick resonse.

however, I want to assign the raw uint64 value, instead of TTL (as it will be calculated by Badger from now)