In-memory caching solutions

This page summarizes the projects mentioned and recommended in the original post on /r/golang

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. encoding

    Go package containing implementations of efficient encoding, decoding, and validation APIs.

    If you're interested in super fast & easy JSON for that cache give this a try I've used it in prod & never had a problem.

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. groupcache

    Clone of golang/groupcache with TTL and Item Removal support (by mailgun)

    I use a fork of Google's groupcache by mailgun in production mostly to cache api requests in memory as protocol buffers. Google's implmentation is strictly a victim cache whereas the fork allows you to expire or delete keys from the cache which is important for me sepcifc usecase but it works quite well https://github.com/mailgun/groupcache

  4. buntdb

    BuntDB is an embeddable, in-memory key/value database for Go with custom indexing and geospatial support

    I've used BuntDB and had a great experience with it. It's basically just a JSON-based key-value store. I'm a huge fan of the developers other work (sjson, gjson, jj, etc) and stumbled on it while looking for a simple, embedded DB solution. It's not specifically a cache, though--just a simple DB, so you'd have to write the caching logic yourself.

  5. go-cache

    An in-memory key:value store/cache (similar to Memcached) library for Go, suitable for single-machine applications.

    Though pretty simple but have a look at https://github.com/patrickmn/go-cache

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • imcache v1.0.0 released. A zero-dependency generic in-memory cache Go library.

    1 project | /r/golang | 3 May 2023
  • rueidis v1, a redis client with client-side caching, has been released under redis org

    3 projects | /r/golang | 1 May 2023
  • [imcache] A generic in-memory cache Go library. Feedback appreciated.

    2 projects | /r/golang | 9 Apr 2023
  • VCache vs Go-Cache

    4 projects | /r/golang | 4 Feb 2023
  • fastcache VS directcache - a user suggested alternative

    2 projects | 16 Jun 2022