redis / go-redis

Redis Go client
https://redis.uptrace.dev
BSD 2-Clause "Simplified" License
19.61k stars 2.31k forks source link

Experimental: Add cache writing #2932

Open ofekshenawa opened 4 months ago

ofekshenawa commented 4 months ago

The following PR enable cache writing and reading in go-redis. This PR does not include handling cache missing and invalidation; it will be added in a future PR. Please feel free to review and add fixes/suggestions! This is the initial PR as part of two other PRs that added cache mechanism to go-redis for the purpose of adding client-side caching to go-redis.