spymemcached 0.1.0-java → 0.1.2-java
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -0
- data/VERSION +1 -1
- data/lib/active_support/cache/spymemcached_store.rb +1 -1
- data/spec/spymemcached_store_spec.rb +4 -0
- data/spymemcached.gemspec +1 -1
- metadata +2 -2
data/README.rdoc
CHANGED
@@ -12,6 +12,7 @@ Or with bundler:
|
|
12
12
|
|
13
13
|
= How to use the cache store
|
14
14
|
|
15
|
+
require "active_support/cache/spymemcached_store" # you need to do this if you're running rails in threadsafe mode.
|
15
16
|
config.cache_store :spymemcached_store, "memcache01:11211", "memcached02:11211", ...
|
16
17
|
|
17
18
|
= Or use the client directly:
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
@@ -23,7 +23,7 @@ module ActiveSupport
|
|
23
23
|
def write(key, value, options = nil)
|
24
24
|
super
|
25
25
|
method = unless_exist?(options) ? :add : :set
|
26
|
-
@cache.send(method, key, value, expiry(options))
|
26
|
+
@cache.send(method, key, value, expiry(options).to_i)
|
27
27
|
end
|
28
28
|
|
29
29
|
def delete(key, options = nil)
|
data/spymemcached.gemspec
CHANGED