ecache icon indicating copy to clipboard operation
ecache copied to clipboard

🦄【轻量级本地内存缓存】🤏代码少于300行⌚️30s接入🚀高性能、极简设计、并发安全🌈支持LRU 和 LRU-2模式 🦖支持分布式一致性 [ecache] Extremely easy, ultra fast, concurrency-safe and support distributed con...

Results 5 ecache issues
Sort by recently updated
recently updated
newest added

如果不用LRU-2,某些经常获取的数据,我希望可以单独延长过期时间,是否可以增加这样的接口?

会有Java版本吗? 感觉代码短小精悍,很适合学习

缓存引用虽然性能很棒, 但是 感觉很容易写出bug啊

请教下,在 func (c *Cache) _get(key string, idx, level int32) (*node, int) 将cache的数据读取的时候,过期的数据也被lru提取到最前面,是不是会导致一些不应该那么快淘汰的数据被淘汰? 将adjust单独抽出,然后过期的数据不需要adjust是不是会更好?