Quantcast
Channel: Active questions tagged redis+ruby-on-rails - Stack Overflow
Browsing all 873 articles
Browse latest View live
↧

Sharing a connection pool for all Rails uses of Redis

Summary: I'm using a single Redis instance for the Rails cache, actioncable and (non-cache) use in my rails code. Should all these uses share a single connection pool and if so how can I config this to...

View Article


Foreman terminates immediately

I recently installed OSX and Ubuntu on different computers. I then attempted to install redis and foreman for both OS's. Both errors threw no flags, and seemed to execute successfully. However,...

View Article


How do I make custom Redis keys for redis-rails Sessions?

I'm trying to set up redis-rails sessions with some unique behavior. I need to be able to allow multiple sessions by the same user, and also get all of the sessions owned by a particular user.I don't...

View Article

Pass newly created object to after_create callback in Rails

Everytime an object has been created i want to enqueue it in a Redis queue to check for certain properties. How can i add the created object directly as a parameter to the callback? So my redis job...

View Article

Unsupported command argument type: Resque::Worker

Im attempting to run resque for a rails 7 app on my machine like this: QUEUE=* bundle exec rake resque:workIt fails with this:rake aborted!TypeError: Unsupported command argument type:...

View Article


How to enable TLS for Redis 6 on Sidekiq?

ProblemOn my Ruby on Rails app, I keep getting the error below for the Heroku Redis Premium 0 add-on:OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=error: certificate verify failed (self...

View Article

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

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 =...

View Article

I can't connect anycable with docker (rails)

I want to build anycable with my application but i got this errorActionController::RoutingError (No route matches [GET] "/cable")and this is error on browseraction_cable.js:241 WebSocket connection to...

View Article


Image may be NSFW.
Clik here to view.

Pipelining commands on a Redis instance is deprecated and will be removed in...

I am using redis version 6.0 and gem 'sidekiq', '>= 6.4.1'gem 'sidekiq-cron', '~> 1.2' for job scheduling in rails. I am using corn job to process email daily. [. My ruby version is 2.7, rails...

View Article


How to evaluate memory footprint of redis key-value in rails app?

I want to store some users' info to redis for each user. Data type is used key-value.For example:$redis.set("user_info:12345", #{some data})Is there any way to evaluate memory footprint? I think redis...

View Article

Can I use my existing Redis for a custom rails cache?

The documentation for the ActiveSupport::Cache::RedisCacheStore states: Take care to use a dedicated Redis cache rather than pointing this at your existing Redis server. It won't cope well with mixed...

View Article

Cache Not Returning Results in Loop When Changed

In order to reduce memory consumption on an API call (using ruby-grape) I'm attempting to calculate data in a background job (Delayed Job, eventually Sidekiq), populate a Redis cache and return the...

View Article

Rails error: can't activate redis (>= 3, < 5), already activated redis-5.0.4

I tried to deploy my Rails app, and got the errorcan't activate redis (>= 3, < 5), already activated redis-5.0.4. Make sure all dependencies are added to Gemfile. (Gem::LoadError)I've tried...

View Article


Redis permission denied while opening dump.rdb

I am using official redis image with sidekiq on dockers.Following are yml configurations for redis image: redis: build: . dockerfile: Dockerfile-redis ports: - '6379:6379' volumes: -...

View Article

Integration test, login with session is reset between http requests in the...

I'm upgrading our application from rails 6.2 to 7.0.4 and have encountered an error where the session in the controller is reset after each http request, which did not happen before. This only happens...

View Article


--- Article Not Found! ---

*** *** *** RSSing Note: Article is missing! We don't know where we put it!!. *** ***

View Article

--- Article Not Found! ---

*** *** *** RSSing Note: Article is missing! We don't know where we put it!!. *** ***

View Article


--- Article Not Found! ---

*** *** *** RSSing Note: Article is missing! We don't know where we put it!!. *** ***

View Article

--- Article Not Found! ---

*** *** *** RSSing Note: Article is missing! We don't know where we put it!!. *** ***

View Article

--- Article Not Found! ---

*** *** *** RSSing Note: Article is missing! We don't know where we put it!!. *** ***

View Article
Browsing all 873 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>