Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/snaipe/go-ttlcache
Go map with TTLs/expirating keys
https://github.com/snaipe/go-ttlcache
Last synced: about 1 month ago
JSON representation
Go map with TTLs/expirating keys
- Host: GitHub
- URL: https://github.com/snaipe/go-ttlcache
- Owner: Snaipe
- License: mpl-2.0
- Created: 2024-04-02T15:53:06.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-04-02T16:21:09.000Z (10 months ago)
- Last Synced: 2024-10-31T11:45:13.361Z (3 months ago)
- Language: Go
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-ttlcache
[![GoDoc](https://godoc.org/snai.pe/go-ttlcache?status.svg)](https://godoc.org/snai.pe/go-ttlcache)
```
go get snai.pe/go-ttlcache
```go-ttlcache is a library implementing an in-memory cache with TTLs.
Why yet another TTL map library? Compared with the others, this library:
* Has 0 dependencies outside of the standard library.
* Does not use any goroutines whatsoever.
* Expires items on write, and optimizes for fast reads.