Skip to content

Support RedisCacheStore (new in Rails 5.2) #281

@brian-kephart

Description

@brian-kephart

After upgrading my app to Rails 5.2.0rc1, I'm occasionally getting the following error:
Redis::CommandError: ERR value is not an integer or out of range

Google says this error is caused by not passing the raw option when writing to Redis, then later incrementing the key. This appears to be fixed in this library for other forms of Redis caching, but not for the new ActiveSupport::Cache::RedisCacheStore.

Previous (working) config:
Ruby 2.5.0
Rails 5.1.4
ReadThisStore
Hiredis (driver)

Current (non-working) config:
Ruby 2.5.0
Rails 5.2.0rc1
RedisCacheStore
Hiredis (driver)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions