Reputation: 115
I was wondering which cache solutions support Write-Through or Read-Through caching. I found out that Memcached only supports Cache-Aside caching and also that DAX supports Write-Through. I was wondering about more caching engines such as Redis etc. and couldn't find the answer.
THX
Upvotes: 2
Views: 2295
Reputation: 524
Take a look at this project (https://github.com/RedisGears/rgsync) that uses RedisGears (https://oss.redislabs.com/redisgears/) to achieve Write-Behind and Write-Through on Redis.
Though it is not supporting Read-Through you can achieve it using RedisGears command reader (https://oss.redislabs.com/redisgears/readers.html#commandreader), just register a command that checks if the data exists on Redis, if its there then just return it. Otherwise, fetch it from wherever you want, save it on Redis, and return it.
Upvotes: 2