Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 33 lines (21 sloc) 1.571 kb
616900a @mperham Add faq and recommendation note
mperham authored
1 = Memcache-client FAQ
2
3 == Does memcache-client work with Ruby 1.9?
4
5 Yes, Ruby 1.9 is supported. The test suite should pass completely on 1.8.6 and 1.9.1.
6
7
8 == I'm seeing "execution expired" or "time's up!" errors, what's that all about?
9
10 memcache-client 1.6.x+ now has socket operations timed out by default. This is to prevent
11 the Ruby process from hanging if memcached or starling get into a bad state, which has been
12 seen in production by both 37signals and FiveRuns. The default timeout is 0.5 seconds, which
13 should be more than enough time under normal circumstances. It's possible to hit a storm of
14 concurrent events which cause this timer to expire: a large Ruby VM can cause the GC to take
15 a while, while also storing a large (500k-1MB value), for example.
16
17 You can increase the timeout or disable them completely with the following configuration:
18
19 Rails:
20 config.cache_store = :mem_cache_store, 'server1', 'server2', { :timeout => nil } # no timeout
21
22 native:
23 MemCache.new ['server1', 'server2'], { :timeout => 1.0 } # 1 second timeout
24
d5ae15d @mperham Add faq about 1.5.0 performance
mperham authored
25
246b2e6 @mperham Update benchmarks and faq with comparison to memcached gem.
mperham authored
26 == Isn't Evan Weaver's memcached gem faster?
d5ae15d @mperham Add faq about 1.5.0 performance
mperham authored
27
c22d6fc @mperham Add support for raw values in get_multi
mperham authored
28 The latest version of memcached-client is anywhere from 33% to 100% slower than memcached in various
29 benchmarks. Keep in mind this means that 10,000 get requests take 1.8 sec instead of 1.2 seconds.
246b2e6 @mperham Update benchmarks and faq with comparison to memcached gem.
mperham authored
30 In practice, memcache-client is unlikely to be a bottleneck in your system but there is always going
cf87d81 @menno Remove trailing whitespace
menno authored
31 to be an overhead to pure Ruby. memcache-client does have the advantage of built-in integration into
5cca8ff @mperham Final doc cleanup, release 1.7.6
mperham authored
32 Rails and should work on non-MRI platforms: JRuby, MacRuby, etc.
Something went wrong with that request. Please try again.