An in-process key/value store for data with expiration dates in Go
$ go get -u github.com/nektro/sdrie
New() SdrieDataStoreNewreturns a new instance of aSdrieDataStore.
Set(key string, value string, lifespan time.Duration)Setaddsvalueto the data store associated tokeyand will survive forlifespanseconds.
Get(key string) interface{}Getretrieves the value associated tokey, ornilotherwise.
Has(key string) boolHasreturns aboolbased on whether or notkeyexists in the data store.
We take issues all the time right here on GitHub. We use labels extensively to show the progress through the fixing process. Question issues are okay but make sure to close the issue when it's been answered!
When making a pull request, please have it be associated with an issue and make a comment on the issue saying that you're working on it so everyone else knows what's going on :D
- hello@nektro.net
- Meghan#2032 on discordapp.com
- @nektro on twitter.com
MIT