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
- Host: GitHub
- URL: https://github.com/orian/go-ttlstore
- Owner: orian
- License: mit
- Created: 2017-03-28T09:48:09.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-12-14T00:11:22.000Z (over 5 years ago)
- Last Synced: 2026-04-08T20:54:13.675Z (3 months ago)
- Topics: go, golang
- Language: Go
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)