Does ActiveSupport::Cache redis_cache_store have support for readonly endpoints?

Viewed 17

I have an AWS Elasticache (cluster mode disabled) replication group with a write primary endpoint, and a readonly endpoint. In my scenario I am configuring Rails' cache store:

  config.cache_store = :redis_cache_store, {
    url: [
      ENV['REDIS_WRITE_HOST'],
      ENV['REDIS_READ_HOST'],
    ],
    ...

As it stands, I think I might run into problems with write operations being made on the readonly endpoint. I have scoured docs and github issues but can't seem to find anything on whether ActiveSupport::Cache actually allows you to use readonly endpoints. Is this at all possible?

0 Answers
Related