An open API service indexing awesome lists of open source software.

https://github.com/orian/go-ttlstore

Simple Golang TTL store
https://github.com/orian/go-ttlstore

go golang

Last synced: 3 months ago
JSON representation

Simple Golang TTL store

Awesome Lists containing this project

README

          

# go-ttlstore
Simple Golang TTL store

It is a sync.Map wrapped with functions cleaning it.
It allows to set a Janitor which is notified about changes in store.

Provided Janitor:
- keeps the number of items under N (keep the most recent ones)
- deletes old items (maxAge)