Categorygithub.com/jorgebay/write-behind-cache-worker
modulepackage
0.0.0-20250131100008-6af6dc056e90
Repository: https://github.com/jorgebay/write-behind-cache-worker.git
Documentation: pkg.go.dev

# README

Write-Behind Cache Worker

A worker that reads from a backing SQL store and caches into Redis using write-behind strategy.

Go

Features

  • Polls from the db at regular intervals
  • Uses Redis request pipeline
  • Tolerates intermittent failures
  • Easy to define the db queries and templates for redis keys
  • Configurable via env vars or config file

Building

make build

Running tests

make start
make test

License

This software may be modified and distributed under the terms of the MIT license. See the LICENSE file for details.