bluele / gcache

An in-memory cache library for golang. It supports multiple eviction policies: LRU, LFU, ARC
MIT License
2.6k stars 271 forks source link

Add: add method GetTTL for cache interface #49

Closed zhangcunli closed 6 years ago

zhangcunli commented 6 years ago

add method GetTTL for cache interface

erwanor commented 6 years ago

Thanks for contributing, I really appreciate that you took the time to implement your feature request.

I made some suggestions; add to those the need for some elementary unit-tests that cover the different cases (KeyNotFoundError etc.)