3
0 Comments

Redis caching layer for Cloudflare Workers KV in Golang

Hi everyone,

I wrote a Go library for using Redis as a caching layer for Cloudflare KV.
Why redis-cloudflare-kv?

  1. Cloudflare KV is a highly distributed, eventually consistent, key-value store that spans Cloudflare's global edge. It allows you to store billions of key-value pairs and read them with some average latency (2 to 3 seconds) anywhere in the world.
  2. Cloudflare KV Read operation is very slow when compared to Redis which offers memory efficiency, fast operating speed, and high availability. So it's better to use Redis as a caching layer for Cloudflare KV to provide fast, economic scaling for your application.
  3. redis-cloudflare-kv checks if there is a cached result for a query in Redis.
  4. If not found in the cache, it will retrieve data from Cloudflare KV, and on the successful result, cache it in Redis for future queries.

Reference: https://github.com/dineshsonachalam/redis-cloudflare-kv

on August 18, 2021
Trending on Indie Hackers
I wasted 6 months building a failed startup. Built TrendyRevenue to validate ideas in 10 seconds. User Avatar 36 comments Your files aren’t messy. They’re just stuck in the wrong system. User Avatar 27 comments Built a tool that finds which Reddit/HN threads are making ChatGPT recommend your competitors User Avatar 21 comments Cloud vs Cybersecurity Certifications | 2026 Path Makes More Sense User Avatar 18 comments Why Direction Matters More Than Motivation in Exam Preparation User Avatar 11 comments A Closer Look at Droven .io Artificial Intelligence User Avatar 8 comments