Skip to content

An in-process key/value store for data with expiration dates in Go

License

Notifications You must be signed in to change notification settings

nektro/go.sdrie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sdrie

loc license discord paypal goreportcard

An in-process key/value store for data with expiration dates in Go

Installing

$ go get -u github.com/nektro/sdrie

Usage

sdrie.New

  • New() SdrieDataStore
  • New returns a new instance of a SdrieDataStore.

SdrieDataStore.Set

  • Set(key string, value string, lifespan time.Duration)
  • Set adds value to the data store associated to key and will survive for lifespan seconds.

SdrieDataStore.Get

  • Get(key string) interface{}
  • Get retrieves the value associated to key, or nil otherwise.

SdrieDataStore.Has

  • Has(key string) bool
  • Has returns a bool based on whether or not key exists in the data store.

Contributing

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!

issues

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

pulls

Contact

License

MIT

About

An in-process key/value store for data with expiration dates in Go

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages