Thriving Thriving Go GO
↑ 16 ?
ecache orca-zhang/ecache

🦄【Lightweight local in-memory cache】🤏Under 300 lines of code ⌚️Integrate in 30s 🚀High performance, minimalist design, concurrency-safe 🌈Supports LRU and LRU-2 modes 🦖Supports distributed consistency [ecache] Extremely easy, ultra fast, concurrency-safe and support distributed consistency. Similar to bigcache, cachego, freecache, gcache, gocache, groupcache, lrucache.

Translated from Chinese by Claude · original on GitHub ↗

HEALTH ? 87 / Healthy
lru-cachegolanggocachebigcachefreecachecachegogcachegroupcachegocache ?

// readme

English README | 英文说明

🦄 ecache

Features

  • 🤏 Under 300 lines of code, integrate in 30s
  • 🚀 High performance, minimalist design, concurrency-safe
  • 🌈 Supports two modes: LRU and LRU-2
  • 🦖 Additional small components for distributed consistency

Benchmark Performance

:snail: means very slow, :airplane: means fast, :rocket: means very fast

👁️‍🗨️Click to see test cases 👁️‍🗨️Click to see results (for cache hit rate, lower values are better)

GC pause test results code provided by bigcache (lower values are better)

Currently being validated under high traffic in production

  • [Verified] WeChat official account backend (several hundred QPS): user info, order info, configuration info
  • [Verified] Push system (tens of thousands of QPS): adjustable system configuration, message deduplication, fixed info caching
  • [Verified] Comment system (tens of thousands of QPS): user info, distributed consistency component

How to Use…