awesome-repositories.com
博客
MCP
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·

Go Caching Libraries

排名更新于 2026年7月13日

For a caching library for Go applications, the strongest matches are allegro/bigcache (This is a high-performance, in-memory caching library for Go), dgraph-io/ristretto (Ristretto is a high-performance, thread-safe in-memory caching library for) and patrickmn/go-cache (This is a thread-safe, in-memory caching library for Go). coocood/freecache and olric-data/olric round out the shortlist. Each is ranked by relevance to your query, popularity and recent activity.

我们为您精选了匹配 “best go caching libraries” 的开源 GitHub 仓库。结果按与您查询的相关性进行排名 — 您可以使用下方筛选器缩小范围,或通过 AI 进行优化。

Go Caching Libraries

用 AI 发现最棒的仓库。我们将通过 AI 为您搜索最匹配的仓库。
  • allegro/bigcacheallegro 的头像

    allegro/bigcache

    8,140在 GitHub 上查看↗

    Bigcache is a thread-safe, in-memory key-value store for Go designed to minimize garbage collection pauses. It functions as a memory-optimized cache capable of storing gigabytes of data while maintaining low latency during high-volume operations. The system avoids garbage collection overhead by managing memory through large byte arrays and manual allocation. It utilizes a circular-buffer layout to reuse space and lock-striped sharding to reduce contention during concurrent read and write access. The project provides capabilities for high-volume in-memory caching and low-latency data retrieva

    This is a high-performance, in-memory caching library for Go that provides thread-safe storage and efficient eviction, though it lacks native support for generics and distributed clustering.

    GoDistributed CachesIn-Memory CachesIn-Memory Data Stores
    在 GitHub 上查看↗8,140
  • dgraph-io/ristrettodgraph-io 的头像

    dgraph-io/ristretto

    6,932在 GitHub 上查看↗

    Ristretto is a high-performance in-memory cache and concurrent key-value store for Go applications. It provides a thread-safe memory store that manages strict memory bounds and employs probabilistic set filters to reduce lookup overhead. The system is distinguished by an admission-policy cache that utilizes frequency sketches and cost-based eviction to maximize hit ratios. It minimizes contention and improves throughput through the use of striped ring buffers and concurrent map sharding. The project covers a broad range of data management capabilities, including time-based expiration, item f

    Ristretto is a high-performance, thread-safe in-memory caching library for Go that features advanced eviction policies and TTL support, making it a strong fit for application-level data storage despite lacking built-in distributed capabilities.

    GoCache Eviction PoliciesIn-Memory CachesTime-To-Live Expirations
    在 GitHub 上查看↗6,932
  • patrickmn/go-cachepatrickmn 的头像

    patrickmn/go-cache

    8,828在 GitHub 上查看↗

    go-cache is a thread-safe, in-memory cache library for Go that stores arbitrary objects with per-item expiration timestamps. It provides a concurrent key-value store where multiple goroutines can safely read and write shared cached data without external synchronization, using a mutex-guarded map for access control. The library distinguishes itself through its expiration management and optional disk persistence. Each cached item carries its own time-to-live, and a background goroutine periodically purges expired entries. The cache can serialize its entire contents to disk using Go's gob encodi

    This is a thread-safe, in-memory caching library for Go that provides essential features like TTL support and concurrent access, though it lacks native support for generics and distributed caching capabilities.

    GoIn-Memory CachesTime-To-Live Expirations
    在 GitHub 上查看↗8,828
  • coocood/freecachecoocood 的头像

    coocood/freecache

    5,399在 GitHub 上查看↗

    freecache is a high-performance, concurrent in-memory key-value store library for Go applications. It functions as a fixed-size cache that manages large volumes of data while eliminating garbage collection overhead through the use of preallocated memory and off-heap storage. The system maintains a predictable memory footprint by utilizing fixed memory allocation and circular buffer management, where new entries automatically overwrite the oldest data upon reaching capacity. It further reduces contention between simultaneous readers and writers through lock-striped concurrent access. The libr

    This library provides high-performance, concurrent in-memory storage with TTL support and eviction policies, making it a strong fit for application-level caching in Go despite lacking built-in distributed capabilities.

    GoCache Eviction PoliciesTime-To-Live Expirations
    在 GitHub 上查看↗5,399
  • olric-data/olricolric-data 的头像

    olric-data/olric

    3,469在 GitHub 上查看↗

    Olric is a distributed data grid and in-memory key-value store that partitions and replicates data across a cluster of servers. It serves as a shared memory system for managing distributed maps, performing atomic operations, and acting as an in-memory data cache. The system provides a distributed locking mechanism for concurrency control and a pub-sub messaging system that broadcasts and routes messages over named channels across the cluster. The platform covers wide-ranging capabilities including cluster management and orchestration, data replication with configurable quorums, and automated

    Olric is a distributed, in-memory key-value store and data grid that functions as a high-performance caching layer, providing the necessary concurrency safety, eviction policies, and TTL support for application-level data storage.

    GoCache Eviction PoliciesIn-Memory CachesTime-To-Live Expirations
    在 GitHub 上查看↗3,469
  • golang/groupcachegolang 的头像

    golang/groupcache

    13,326在 GitHub 上查看↗

    Groupcache is a distributed caching library designed to coordinate data retrieval and storage across a cluster of nodes. It functions as a peer-to-peer data store that uses consistent hashing to assign specific keys to canonical owners, ensuring that cached items remain predictable and accessible throughout the network. The system distinguishes itself through a request coalescing engine that merges concurrent requests for the same missing key into a single upstream fetch. This mechanism prevents redundant backend load by ensuring that only one process retrieves the required data while sharing

    Groupcache is a high-performance, in-memory caching library for Go that excels at distributed data coordination and request coalescing, though it lacks some common features like configurable TTLs or diverse eviction policies found in simpler local-only caches.

    GoDistributed Caching
    在 GitHub 上查看↗13,326
  • hashicorp/golang-lruhashicorp 的头像

    hashicorp/golang-lru

    5,091在 GitHub 上查看↗

    This is a thread-safe in-memory cache library for Go that automatically evicts the least recently used items when capacity is reached. It provides a fixed-size memory cache designed to maintain a constant memory footprint by removing the oldest entries as new data arrives. The system includes an eviction manager that executes custom callbacks when entries are purged to facilitate resource cleanup. It also supports time-based expiration, allowing for the automatic removal of items after a specified time-to-live duration. The library covers general caching capabilities including cache inspecti

    This is a thread-safe, in-memory caching library for Go that provides essential features like fixed-size capacity, LRU eviction, and time-based expiration for application-level data storage.

    GoTime-To-Live Expirations
    在 GitHub 上查看↗5,091
  • eko/gocacheeko 的头像

    eko/gocache

    2,866在 GitHub 上查看↗

    ☔️ A complete Go cache library that brings you multiple ways of managing your caches

    This library provides a comprehensive interface for managing in-memory caches in Go, supporting multiple storage backends, TTL, and concurrency-safe operations.

    GoCaching LibrariesData Structures
    在 GitHub 上查看↗2,866
  • bluele/gcachebluele 的头像

    bluele/gcache

    2,731在 GitHub 上查看↗

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

    This is a Go-based in-memory caching library that provides essential features like multiple eviction policies and concurrency safety, making it a direct fit for application-level data storage.

    GoCaching and Key-Value StoresCaching LibrariesDatabases
    在 GitHub 上查看↗2,731
  • muesli/cache2gomuesli 的头像

    muesli/cache2go

    2,158在 GitHub 上查看↗

    Concurrency-safe Go caching library with expiration capabilities and access counters

    This is a concurrency-safe, in-memory caching library for Go that supports TTL expiration and access-based eviction, making it a solid choice for application-level data storage despite lacking built-in distributed capabilities.

    GoCaching LibrariesDatabases
    在 GitHub 上查看↗2,158
  • jellydator/ttlcachejellydator 的头像

    jellydator/ttlcache

    1,256在 GitHub 上查看↗

    An in-memory cache with item expiration and generics

    This is an in-memory caching library for Go that provides generics support and TTL-based expiration, making it a direct fit for application-level data storage despite lacking built-in distributed capabilities.

    GoCaching Libraries
    在 GitHub 上查看↗1,256
一览前 10 名对比
仓库Star 数语言许可证最后推送
allegro/bigcache8.1KGoApache-2.02026年4月24日
dgraph-io/ristretto6.9KGoApache-2.02026年5月6日
patrickmn/go-cache8.8KGoMIT2023年11月20日
coocood/freecache5.4KGoMIT2026年3月19日
olric-data/olric3.5KGoApache-2.02026年6月12日
golang/groupcache13.3KGoapache-2.02024年11月29日
hashicorp/golang-lru5.1KGoMPL-2.02026年5月25日
eko/gocache2.9KGoMIT2026年5月11日
bluele/gcache2.7KGoMIT2024年3月1日
muesli/cache2go2.2KGoNOASSERTION2024年7月2日

Related searches

  • a caching library for Go applications
  • a caching library for C# applications
  • a caching library for Java applications
  • a javascript library for caching data
  • a python library for caching function results
  • a rate limiting library for Go applications
  • 支持缓存的 GraphQL 客户端库
  • a message queue library for Go