rails / solid_cache

A database-backed ActiveSupport::Cache::Store
MIT License
890 stars 63 forks source link

NoMethodError: undefined method `read' for class SolidCache::Entry #237

Open amkisko opened 3 weeks ago

amkisko commented 3 weeks ago

Hey!

After full setup, getting this error:

$ bin/rails c

> Rails.cache.exist?("test")
NoMethodError: undefined method `read' for class SolidCache::Entry
from /Users/me/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/activerecord-7.2.1.2/lib/active_record/dynamic_matchers.rb:22:in `method_missing'

Can't figure out what's missing, anybody got the same?

Setup:

development: <<: *default

test: <<: *default

production: <<: *default

- config/environments/development.rb
```ruby
config.cache_store = :solid_cache_store

RUBY VERSION ruby 3.3.4p94

BUNDLED WITH 2.5.20