similar to: Volatile cache keys with Rails and Redis

Displaying 20 results from an estimated 2000 matches similar to: "Volatile cache keys with Rails and Redis"

2010 Apr 22
7
Making ActiveSupport::Cache consistent
Lighthouse ticket: https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/4452 I have recently been working on some gems that utilize ActiveSupport::Cache and ran into some issues with the different implementations handling the same functionality differently. One of the issues was that I couldn''t rely on expiring entries with the :expires_in option. MemCacheStore takes this
2008 Nov 19
3
Rails.cache and problem with model id?
I have the following: MODEL: def self.get_tag_cloud Rails.cache.fetch(''fetish_tag_cloud'', :expires_in => 1.hour) do find(:all, :conditions => [ "approved_for_tag_cloud = true"], :order => "LTRIM(name)") end end CONTROLLER: def index @fetishes = Fetish.get_tag_cloud end VIEW: .... <% @fetishes.each do |fetish| -%>
2006 Feb 16
2
Making the browser cache an action
Hi! What HTTP headers do I have to sent to make the browser cache the output of an action? I tried: request.delete(''Cache-control'') but no luck. It''s an action that sends an image to the browser, hence I need that. Thanks, Rob
2012 Sep 30
3
How to escape a forward slash with gsub, also does interpolation work with gsub?
I am trying this: I want to replace all the text in between java comments: /* start */ replace this text here /* end */ I''m trying: text.gsub(//* start */(.*)/* end *//im, replace_with) But i''m getting errors relating to expecting keyword_end. How should I be escaping /* and */ ? Also, does string interpolation work in gsub regex? Say I had variables like: start_tag =
2019 Oct 13
1
CentOS 8 redis install
Hello, can any help me to install redis to my new webserver? I cant't enable the redis module with dnf ? Is redis missing on Centos 8 ? is it a way to download redis from a centos Server for manual install Thanks for a answer ? -- mit freundlichen Gr??en / best regards G?nther J. Niederwimmer
2020 Nov 04
0
Feature Request: Redis support for username and TLS
I was wondering if there was any imminent support in 2.3.12+ for using a username to log into Redis, as well as support for using TLS to connect to Redis. And if not, I'd like to put in a feature request for those two things (AUTH with username/password, and TLS connections to Redis). Specifically, I was looking at using a username/password combo to log into Redis for the quota_clone plugin.
2010 Sep 17
0
ruby's oauth2 grant_type
Hi, i started using oauth2 gem by intridea (http://github.com/intridea/oauth2) and don''t know how to fix this problem. I have developed both client and server and on request for access_token i see no grant_type parameter. My code from client callback controller class CallbackController < Devise::OauthCallbacksController def accounts access_token =
2019 Jul 18
0
Missing PHP Redis package in Software Collections ?
Hi, I'm currently fine-tuning OwnCloud on a CentOS 7 server. To configure transactional locking, I need Redis with the corresponding PHP module. Until recently the server has been running PHP 7.1. I simply installed the 'redis' package as well as 'sclo-php71-php-pecl-redis', started and/or restarted a handful of services, and things worked perfectly. Now I'm upgrading my
2012 Dec 06
1
Documentation of Redis and Memcache Backends
Hi, in the release notes of 2.1.9 I read that dovecot supports memcache and redis backends for userdb/passdb authentication. This is very interesting for me and should reduce queries and database load of our mysql servers. My idea is to use memcache or redis in our IMAP/POP3 proxies in front of our backend servers. So I would like to try out if it's possible to store proxy information of our
2020 Jul 08
3
Redis in place of astdb
El Wed, 8 Jul 2020 12:23:42 -0700 John Kiniston <johnkiniston at gmail.com> escribió: > Dovid, You could use func_odb + a ODBC Redis driver to keep from having to > shell out. > > DO you know odbc redis drivers? It would be nice to store cdrs ans other stuff in redis without patching asterisk -- PekePBX, the multitenant PBX solution https://pekepbx.com
2010 May 31
1
Flash not deleting with Redis/Memcache store
I''m a recent convert to Rails and I''m working on a new project using Rails 2.3 (I''ll probably upgrade at some point when Rails 3 is in production and had a chance to bake the .0 bugs out). I''m going to use Redis anyway for caching important data, so I thought I''d use the redis-store: http://github.com/jodosha/redis-store But it appears the flash
2019 Feb 09
0
CentOS 7, rsyslog and redis
TL;DR: Is there a sensible way to get rsyslog to talk to redis on CentOS 7. The official way is to use the omhiredis plugin, but that doesn't seem to exist in the CentOS 7 repositories? (It's how I do it on my Fedora box.) The long version: I'm trying to rationalise logging and am using an ELK stack. When I've done this in the past it has suffered badly from congestion at peak
2011 Jun 21
1
Redis persistent values missing
Hi, I am using redis to store high scores for my users. I restarted it for the first time in a month and now I am missing all the stored values. Anyone have an idea why this happend? Is there any way to get them back?? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2020 Jul 08
0
Redis in place of astdb
Hello, Are you looking for a general caching solution or you specifically need to use Redis? At Thirdlane we use Memcached which works just fine for our purposes. Regards, Volodya Ivanets From: "Dovid Bender" <dovid at telecurve.com> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users at lists.digium.com> Sent: Wednesday, July 8,
2020 Jul 09
0
Redis in place of astdb
On Thursday 09 July 2020 at 00:50:28, Jon Bonilla (Manwe) wrote: > DO you know odbc redis drivers? It would be nice to store cdrs ans other > stuff in redis without patching asterisk A quick Google search turns up https://www.cdata.com/kb/tech/redis-odbc-python-linux.rst which I have no experience of and cannot comment on, but looks like what you need. PS: I question the wisdom of
2014 Jul 08
0
Redis sentinel support in dict
Redis sentinel ( http://redis.io/topics/sentinel ) is a service that monitors and manages redis master slave replication. Using sentinel you can easily create a redis ha cluster. You can connect to a sentiniel and subscribe to certain events then in case of an failover update the redis address to new master etc. I think this is better suited to be used with dict proxy. Do You think it can be
2020 Jan 28
0
dict passdb: redis nil values
Hi, I am trying to implement a dict lookup for disabled accounts, where both the passdb lookup and the disabled lookup is done in the same passdb. I was hoping that this configuration would work: passdb { name = redis driver = dict args = /etc/dovecot/dovecot-redis.conf.ext } --- uri = redis:host=127.0.0.1 key disabled { key = users/%u/disabled/%s format = value
2020 Jul 08
0
Redis in place of astdb
Dovid, You could use func_odb + a ODBC Redis driver to keep from having to shell out. On Wed, Jul 8, 2020 at 4:37 AM Dovid Bender <dovid at telecurve.com> wrote: > Hi, > > Does anyone know of any projects that would allow you to use Redis in > place of AstDB? By in place of I don't mean for what Asterisk needs but to > store values. For instance for CNAM currently we
2016 Nov 01
0
2.2.26.0: Error: redis: Unexpected input (state=0): -ERR max number of clients reached
I use redis as quota backend (currently). After upgrading to 2.2.26.0 I see a ton of "Error: redis: Unexpected input (state=0): -ERR max number of clients reached" errors. It looks like either more Redis connections are being made, or Redis connections don't time out/are reused correctly anymore. No such errors were seen in 2.2.24. -- Tom
2014 Mar 19
0
redis, pub/sub, rails 3, phusion passenger
I have another application publishing messages to redis server. Within my rails application, when a user clicks a button, I want a popup to display that shows live updates. I want the controller to publish notifications to redis, and I want my javascript to subscribe to those events and respond when it finds a suitable channel. What I do not know how to do is actually keep a control open like