Categorygithub.com/orian/go-ttlstore
modulepackage
0.0.0-20201214001109-73c2cd771b5d
Repository: https://github.com/orian/go-ttlstore.git
Documentation: pkg.go.dev

# 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)

# Functions

No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Deleter implements a clean up mechanism.
TtlStore is a map store with callback on Set.

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author