Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 714 Bytes

README.md

File metadata and controls

9 lines (7 loc) · 714 Bytes

TTLCAche - LRU cache with TTL

Build Status Coverage Status GoDoc

TTLCache is based on the implementation design of golang's groupcache lru, with cache entry TTL control. A expired cache entry is preferred for cache eviction. When there is no expired entry, LRU principle takes effect. Cache Gets don't affect cache entry TTL.

It is thread-safe by a simple mutex lock.