SHORTLIST20
日本語
Englishالعربية中文日本語한국어EspañolFrançaisहिन्दी
プログラミング

Go (Golang) caching libraries

In-memory and distributed caches for Go, ranked by GitHub stars

更新 · GitHub stars (stars)

なぜこの20か

Ranked by GitHub stars: how many developers bookmarked the project. Stars measure attention, not quality, so each row also shows forks, licence and the last push. Tools without a public repository have no star count and can't be ranked here.

このリストは役に立ちましたか?
  1. 1

    groupcache

    Groupcache is a caching and cache-filling library, intended as a replacement for memcached in many cases.

    13,340 stars 1,392 forkslast push 2024-11-29GoApache-2.0

    こちらにも: #12 Go database tools and engines

  2. 2

    BigCache

    Efficient key/value cache for gigabytes of data.

    8,172 stars 621 forkslast push 2026-11-18GoApache-2.0

    こちらにも: #18 Go database tools and engines

  3. 3

    ristretto

    A high performance memory-bound Go cache.

    7,015 stars 470 forkslast push 2026-09-21GoApache-2.0

  4. 4

    eko/gocache

    A complete Go cache library with multiple stores (memory, memcache, redis, ...), chainable, loadable, metrics cache and more.

    2,892 stars 224 forkslast push 2026-11-17GoMIT

  5. 5

    GCache

    Cache library with support for expirable Cache, LFU, LRU and ARC.

    2,727 stars 286 forkslast push 2024-03-01GoMIT

  6. 6

    otter

    A high performance lockless cache for Go. Many times faster than Ristretto and friends.

    2,711 stars 74 forkslast push 2026-11-25GoApache-2.0

  7. 7

    fastcache

    fast thread-safe inmemory cache for big number of entries. Minimizes GC overhead.

    2,373 stars 199 forkslast push 2026-06-15GoMIT

  8. 8

    cache2go

    In-memory key:value cache which supports automatic invalidation based on timeouts.

    2,150 stars 500 forkslast push 2024-07-02GoNOASSERTION

  9. 9

    jellydator/ttlcache

    An in-memory cache with item expiration and generics.

    1,318 stars 156 forkslast push 2026-11-09GoMIT

  10. 10

    sturdyc

    A caching library with advanced concurrency features designed to make I/O heavy applications robust and highly performant.

    1,286 stars 35 forkslast push 2026-11-19GoMIT

  11. 11

    jetcache-go

    Unified Go cache library supporting multi-level caching.

    498 stars 34 forkslast push 2026-02-24GoBSD-2-Clause

  12. 12

    theine

    High performance, near optimal in-memory cache with proactive TTL expiration and generics.

    381 stars 25 forkslast push 2026-11-04GoMIT

  13. 13

    go-freelru

    A GC-less, fast and generic LRU hashmap library with optional locking, sharding, eviction and expiration.

    272 stars 26 forkslast push 2026-11-17GoApache-2.0

  14. 14

    pocache

    Pocache is a minimal cache package which focuses on a preemptive optimistic caching strategy.

    238 stars 6 forkslast push 2026-11-23GoMIT

  15. 15

    bcache

    Eventually consistent distributed in-memory cache Go library.

    163 stars 20 forkslast push 2023-01-13GoMIT

  16. 16

    go-cache

    A flexible multi-layer Go caching library to deal with in-memory and shared cache by adopting Cache-Aside pattern.

    161 stars 13 forkslast push 2023-08-30GoApache-2.0

  17. 17

    imcache

    A generic in-memory cache Go library. It supports expiration, sliding expiration, max entries limit, eviction callbacks and sharding.

    123 stars 6 forkslast push 2024-12-14GoMIT

  18. 18

    easycache

    A simple way to use in-memory cache in Golang (TTL/FIFO/LRU/LFU).

    121 stars 1 forkslast push 2026-08-19GoMIT

  19. 19

    go-mcache

    Fast in-memory key:value store/cache library. Pointer caches.

    107 stars 19 forkslast push 2026-10-06GoMIT

  20. 20

    timedmap

    Map with expiring key-value pairs.

    75 stars 10 forkslast push 2024-05-05GoMIT

測り方

Every tool in the Caches section(s) of the community list avelino/awesome-go on GitHub with a public repository, ranked by GitHub stars from the GitHub API; archived repositories are left out. Added by the daily list generator.

参考資料

  1. avelino/awesome-go: Caches, GitHub community list (list text MIT; star counts from the GitHub API). Checked 2026-11-26 10:00 UTC.
  2. avelino/awesome-go (Caches), GitHub community list, 31 tools with a public repository.