Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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.