New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rack::Cache cache error: Unknown storage provider #188
Comments
I confirm this is happening on master. |
While redis-rack-cache can be used as a stand-alone rack middleware in any rack based application, Rails included, passing this configuration hash to action_dispatch.rack_cache tries to plug Redis::Store as a backend for Rack::Cache. This is currently not supported. |
Just ran into this... @freegenie I don't quite follow your comment. Are you saying the redis-rails README is not correct? Or that there's a bug on master? |
OK - so do we need to take the action_dispath.rack_cache configuration out of the redis-rails README? Do we need to manually configure the Rack::Cache in our own middleware stack? Some updates to the README or addressing this issue to have functionality consistent with the README would be greatly appreciated! |
@deevis Which Rails version are you using? Because rack-cache has been removed from 4 ( http://rubygems.org/gems/actionpack/versions/4.0.0 vs http://rubygems.org/gems/actionpack/versions/3.2.14 ). Anyway, feel free to open a pull request here https://github.com/redis-store/redis-rails Thanks |
You just need to add to your Gemfile
|
Hi, I have the same problem described in this post. Basically I tried adding gems redis-rack-cache and rack-cache, but apparently the configuration is not detected. The configuration I have tried is: #environments/development.rb I have also tried: config.middleware.use Rack :: Cache, I always get a response like: and revise redis indeed never saved anything. I have set the configuration in development, because I would like to test. No if that creates problems. Any idea what's happening? Any help will be highly appreciated. |
any update on this? |
If there was it would be posted here.
|
@Ingary your configuration is somewhat strange...it should be |
I'm still experiencing the same issue with the |
bump |
@CaioBianchi @jfloff what version is installed ( |
config.action_dispatch.rack_cache = { cache: [GET /api/users] miss gem 'redis-rack-cache', github: "redis-store/redis-rack-cache" when I remove that gem return pass |
I just got this error again 😅 . I have the latest version My configuration looks like this: rack_cache = {
metastore: ::Rack::Cache::MetaStore::Redis.new("#{ENV['REDIS_TLS_URL']}/1/metastore", ssl_params: { verify_mode: OpenSSL::SSL::VERIFY_NONE }),
entitystore: ::Rack::Cache::EntityStore::Redis.new("#{ENV['REDIS_TLS_URL']}/1/entitystore", ssl_params: { verify_mode: OpenSSL::SSL::VERIFY_NONE }),
} |
@jfloff would you mind opening a new issue, as this one is quite old? And please show us how that rack_cache variable is being used. |
Hi there,
I recently attempted to start using redis-store as a back end for the Rack::Cache HTTP caching of my Rails 3.2 app. However I'm seeing the following stacktrace after following the README instructions:
I can confirm that redis-store is working for my fragment caches, and that the same URL is being used for that connection.
Here are the relevant lines from my environment file:
Should this work, or have I missed something from the readme?
The text was updated successfully, but these errors were encountered: