go-ttlmap is a Go package that provides an in-memory key-value cache with notification events for storing TTL-based expirable items.
First, you need to install the package:
go get -u github.com/imkira/go-ttlmap
For advanced usage, make sure to check the available documentation here.
For examples check out the following code.
Found a bug? Want to contribute and add a new feature?
Please fork this project and send me a pull request!
go-ttlmap is licensed under the MIT license:
www.opensource.org/licenses/MIT
Copyright (c) 2016 Mario Freitas. See LICENSE for further details.