https://github.com/jorgebay/write-behind-cache-worker
A worker that reads from a backing SQL store and caches into Redis using write-behind strategy
https://github.com/jorgebay/write-behind-cache-worker
cache postgres redis write-behind
Last synced: about 1 year ago
JSON representation
A worker that reads from a backing SQL store and caches into Redis using write-behind strategy
- Host: GitHub
- URL: https://github.com/jorgebay/write-behind-cache-worker
- Owner: jorgebay
- License: mit
- Created: 2024-10-07T08:40:16.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-27T15:32:31.000Z (over 1 year ago)
- Last Synced: 2025-01-27T15:40:30.430Z (over 1 year ago)
- Topics: cache, postgres, redis, write-behind
- Language: Go
- Homepage:
- Size: 26.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Write-Behind Cache Worker
A worker that reads from a backing SQL store and caches into Redis using write-behind strategy.
[](https://github.com/jorgebay/write-behind-cache-worker/actions/workflows/test.yml)
## 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
```shell
make build
```
## Running tests
```shell
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.