Skip to content

lziest/ttlcache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

a thread-safe LRU cache with item-wise TTL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages