localmemcache_store 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -1
- data/lib/active_support/cache/localmemcache_store.rb +3 -3
- metadata +2 -2
data/README.rdoc
CHANGED
@@ -43,7 +43,7 @@ these two parameters:
|
|
43
43
|
* +:size_mb+: Specify the cache size in megabytes. Since the memory is
|
44
44
|
used only virtually, you can feel free to use great values like 4096 ;-).
|
45
45
|
Remember that this eats up your address space on 32bit systems.
|
46
|
-
(Defaults to
|
46
|
+
(Defaults to 64).
|
47
47
|
A configuration could look like this:
|
48
48
|
config.cache_store = :localmemcache_store,
|
49
49
|
{ :namespace => 'testapp', :size_mb => 256 }
|
@@ -15,11 +15,11 @@ module ActiveSupport::Cache
|
|
15
15
|
# +:lmc_store+.
|
16
16
|
#
|
17
17
|
# This is escpecially useful if to run seperated caches on one machine.
|
18
|
-
# * +:size_mb+: Size of the cache, defaults to +
|
18
|
+
# * +:size_mb+: Size of the cache, defaults to +64+.
|
19
19
|
def initialize options = {}
|
20
20
|
options.reverse_merge!({
|
21
21
|
:namespace => :lmc_store,
|
22
|
-
:size_mb =>
|
22
|
+
:size_mb => 64
|
23
23
|
})
|
24
24
|
@size_mb = options[:size_mb]
|
25
25
|
@lmc = LocalMemCache::ExpiryCache.new options
|
@@ -82,7 +82,7 @@ module ActiveSupport::Cache
|
|
82
82
|
# (options are ignored at the time)
|
83
83
|
def exist?(name, options = nil)
|
84
84
|
super
|
85
|
-
|
85
|
+
@lmc.has_key?(name)
|
86
86
|
end
|
87
87
|
|
88
88
|
# Clears the entire cache.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: localmemcache_store
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "Florian D\xC3\xBCtsch (der_flo)"
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-11-
|
12
|
+
date: 2009-11-07 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|