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

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

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • go-cache

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

    Write a flexible multi-layered caching library interacts with private (in-memory) cache and shared cache (i.e. Redis) in Go ( https://github.com/viney-shih/go-cache ). It provides `Cache-Aside` strategy when dealing with both. But more advanced, it maintains the consistency of private cache between distributed systems by `Pub-Sub` pattern.

  • ristretto

    A high performance memory-bound Go cache (by outcaste-io)

    I think the non-guarantee is in respect to tinylfu acting as a filter, so a new arrival may be immediately discarded. However, if all writes go through this buffer then an update and create are delayed within the hash table. The rational was performance in a microbenchmark to flip the behavior for publishing an article. I recall them admitting it was a mistake due to the surprises it caused and that they hoped to later change it back. You can ask on their new github and maybe send a pr.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

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