bluele / gcache

An in-memory cache library for golang. It supports multiple eviction policies: LRU, LFU, ARC

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ARC.Len() and ARC.GetAll() returns expired item/count

fogywang opened this issue · comments

commented

First, thanks for the contributors to provide expirable cache on LRU/LFU/ARC.

Here's an issue I encounter while using ARC cache:
After items in ARC cache being all expired (confirmed that Get() cannot get any value), Len() still returns the length as if items weren't expired.
Same as GetAll(), it returns a map containing items that are supposed to be all expired.

Thanks. Let me check the issue.

This issue is fixed by #18