Displaying 20 results from an estimated 1200 matches similar to: "memcache for variables"
2006 Aug 19
3
memcache-client working for anyone?
I''m at the bloody forehead stage, so I figure it''s time to ask. After
installing the robot coop''s memcache-client which everyone apparently
recommends, it refuses to work because the rails cache.rb is invoking
the read() method on the cache, which it _does not have_. Their library
has get() and put() but no read() and write() as rails expects. What
gives? Is
2006 Jan 21
3
Fragment caching with Memcached slow?
Hi,
I am trying to do fragment caching using :mem_cache_store. However, when I
compare it to fragment caching using :file_store, it seems to be a lot
slower.
Here are the results:
uncache
Completed in 2.20246 (0 reqs/sec) | Rendering: 2.19891 (99%) | DB:
0.00017(0%) | 200 OK [
http://127.0.0.1/]
using file_store
Completed in 0.00952 (105 reqs/sec) | Rendering: 0.00702 (73%) | DB:
0.00000(0%)
2007 Sep 07
2
memcached and fragment storage, session storage with a mongrel cluster
Greetings,
I posted this not on the Rails mailing list and didn''t get a definitive
response so I thought I''d post it here, since I figure lots of you
are using
mongrel with Rails apps. Any suggestions would be greatly appreciated.
I''ve been using file-based fragment caching and DB-based session
caching quite extensively. I decided to try out memcached for both to
2006 Jan 17
10
ActiveRecord + memcache = cached_model
Courtesy of The Robot Co-op.
$ yes | sudo gem install cached_model
Or, you can download cached_model and memcache-client (our zippy-fast
memcache library, required) from:
http://rubyforge.org/frs/?group_id=1266
I don''t have the README posted for making cached_model work online
yet, so here it is:
= CachedModel
Rubyforge Project:
http://rubyforge.org/projects/rctools/
== About
2006 Apr 20
12
memcache, sessions, fragments, oh my!
Hi all -
I am trying to get rails to use memcache for sessions and fragment
caching. I''d also like to use the same connection for general caching of
this and that.
I''m following the instructions here:
http://wiki.rubyonrails.com/rails/pages/HowtoChangeSessionStore
and hitting a brick wall.
I''m using the new memcache-client since from what I''ve read
2009 Apr 13
6
Memcached 1.6.5 (Rails 2.3) 10x slower
The move to memcached_client 1.6.5 in Rails 2.3 seems to have made the
Rails cache about 10x slower. Since that''s the opposite effect I
would expect, I was hoping somebody would explain where I''m misreading
these numbers?
I noticed my fragment caching was slow -- it shouldn''t take 2ms just
to read a 2k string from a localhost memcached server:
Cached fragment hit:
2006 Jul 21
2
mongrel, memcache and sessions
Hi,
I''m using mongrel-0.3.13.3 with memcache-client-1.0.3 for storing sessions.
It was working fine with actionpack-1.12.0, but when I upgraded to
actionpack-1.12.3, I started getting a "can''t convert String into Hash"
error from memcache.rb from memcache-client.
I was able to fix it by changing the way the MemCache object was created in
2009 Feb 18
4
expire_fragment with memcached
Hello all,
We know that memcached or memcached-client doesn''t support regex... But
It seems it doesn''t support expire_fragment either :/
I''m trying to use expire_fragment with memcached as following :
expire_fragment(:controller => ''home'', :action => :list_posts)
But apparently it''s not supported by memcached :
RuntimeError (Not
2010 Mar 03
2
Memcached: "no such file to load -- memcache-client" when running script/console
Hi folks. I''ve started down the memcached path and everything was
running grand until I decided to start up my console. I have manually
installed libevent 1.4.13 and memcached 1.4.4 into /usr/local,
following which I sudo gem installed memcache-client and SystemTimer.
development.rb has been modified to do caching with the
mem_cache_store.
The memcached process seems to work and my
2007 Aug 20
5
byte-range requests
Hello everyone,
I did some initial tests and it seems that mongrel does not support
byte-range requests. Is this correct?
The reason I ask is that the iPhone requires byte-range requests to
work in order to stream audio or video from a web server.
Thanks in advance,
alan
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
2006 Feb 12
3
memcache-client/cached_model help
Hi -
Just downloaded and installed the memcache-client and cached_model
gems and am trying to test it out on a development setup. I added
this to my environment/development.rb
CACHE = MemCache.new :c_threshold => 10_000,
:compression => true,
:debug => true,
:namespace => ''eztrip'',
2006 Mar 01
4
cached_model and memcache-client slowness
Hi there,
I''ve got a Rails app that''s a little unusual in that it maintains a
database representation of a filesystem (for an image gallery). Thus, if
the filesystem is essentially ''out of date'' then the controller''s list
action will end up invoking a model update (which involves a filesystem
scan).
I''m using sqlite3 as this app will be
2009 Apr 08
3
Rails 2.3 memcache performance drop
After much effort I upgraded our fairly large Rails app from 2.1 to
2.3. After deployment yesterday I noticed an across the board
increase in response times. It seems that every call to memcache now
takes 10x longer than before. Here are some example numbers from my
development log (below), with memcache running locally. We see
similar scale of performance drop in production as well - average
2007 Jan 22
7
memcache
Just curious, is there anyway to use memcache with a ferret index?
Thanks,
Ray
--
Posted via http://www.ruby-forum.com/.
2006 Jan 20
2
The New Memcache ?
Hey All !
I ended up browsing to Eric Hodel''s blog the other night, and found his
entry about the new cache_model and memcache-client.
Now, it looks like it''s "officially" out in the open:
http://weblog.rubyonrails.com/articles/2006/01/20/caching-models-with-memcached
In my application, I''ve been staying away from caching my models, and
instead just doing
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
2007 Jan 02
1
Recommendation: Stalled Mongrel? Memcache Hates Spaces
Hi Everyone,
There''s quite a few of you who have contacted me about Mongrel suddenly stopping. After a lot of investigation, I found that the common thread between all of you is memcache and Eric Hodel''s memcache-client. People who were running this combination would have intermittent pauses and investigating the stalled mongrels showed that memcache-client was waiting for
2006 Oct 11
0
storing typo sessions in memcache
I was trying to use memcache for session storage in Typo. And i got
following error, when user logs into the system.
Session ID:
Cookie set: is_admin=yes; path=/
Redirected to http://foobar.com:8002/admin/content
Completed in 0.02042 (48 reqs/sec) | DB: 0.00236 (11%) | 302 Found
[http://foobar.com/accounts/login]
undefined class/module User
2006 Jan 30
1
find_by_sql and memcached
Is a find_by_sql query cached with memcached and cached_model
(http://dev.robotcoop.com/Libraries/)? Looks like the answer is no. Is
there a reason for this? I have a lot of very complicated querys with a
lot of unions, subquerys and joins that would greatly benefit from the
cache.
Going through the code I can see that the find_by_sql method is changed
in cached_model.rb, but it does not call