torquebox-cache 2.1.0-java → 2.1.1-java
Sign up to get free protection for your applications and to get access to all the features.
data/lib/cache.rb
CHANGED
@@ -140,12 +140,12 @@ module TorqueBox
|
|
140
140
|
end
|
141
141
|
|
142
142
|
def contains_key?( key )
|
143
|
-
cache.contains_key( key )
|
143
|
+
cache.contains_key( key.to_s )
|
144
144
|
end
|
145
145
|
|
146
146
|
# Get an entry from the cache
|
147
147
|
def get(key)
|
148
|
-
cache.get(key)
|
148
|
+
cache.get( key.to_s )
|
149
149
|
end
|
150
150
|
|
151
151
|
# Write an entry to the cache
|
@@ -158,7 +158,7 @@ module TorqueBox
|
|
158
158
|
end
|
159
159
|
|
160
160
|
def evict( key )
|
161
|
-
cache.evict( key )
|
161
|
+
cache.evict( key.to_s )
|
162
162
|
end
|
163
163
|
|
164
164
|
def replace(key, original_value, new_value, codec=NoOpCodec)
|
@@ -171,13 +171,13 @@ module TorqueBox
|
|
171
171
|
|
172
172
|
if ( decoded == original_value )
|
173
173
|
# how does this work?
|
174
|
-
cache.replace( key, current, codec.encode( new_value ) )
|
174
|
+
cache.replace( key.to_s, current, codec.encode( new_value ) )
|
175
175
|
end
|
176
176
|
end
|
177
177
|
|
178
178
|
# Delete an entry from the cache
|
179
179
|
def remove(key)
|
180
|
-
cache.removeAsync( key ) && true
|
180
|
+
cache.removeAsync( key.to_s ) && true
|
181
181
|
end
|
182
182
|
|
183
183
|
def increment( sequence_name, amount = 1 )
|
@@ -322,7 +322,7 @@ module TorqueBox
|
|
322
322
|
end
|
323
323
|
|
324
324
|
def __put(key, value, expires, operation)
|
325
|
-
args = [ operation, key, value ]
|
325
|
+
args = [ operation, key.to_s, value ]
|
326
326
|
if expires > 0
|
327
327
|
# Set the Infinispan expire a few minutes into the future to support
|
328
328
|
# :race_condition_ttl on read
|
Binary file
|
Binary file
|
data/lib/torquebox-cache.jar
CHANGED
Binary file
|
data/lib/torquebox-cache.rb
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
module TorqueboxCache
|
2
|
-
VERSION = '2.1.
|
3
|
-
MAVEN_VERSION = '2.1.
|
2
|
+
VERSION = '2.1.1'
|
3
|
+
MAVEN_VERSION = '2.1.1'
|
4
4
|
end
|
5
5
|
begin
|
6
6
|
require 'java'
|
7
7
|
require File.dirname(__FILE__) + '/torquebox-cache.jar'
|
8
|
-
require File.dirname(__FILE__) + '/polyglot-cache-1.7.
|
9
|
-
require File.dirname(__FILE__) + '/polyglot-core-1.7.
|
8
|
+
require File.dirname(__FILE__) + '/polyglot-cache-1.7.2.jar'
|
9
|
+
require File.dirname(__FILE__) + '/polyglot-core-1.7.2.jar'
|
10
10
|
rescue LoadError
|
11
11
|
puts 'JAR-based gems require JRuby to load. Please visit www.jruby.org.'
|
12
12
|
raise
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: torquebox-cache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 2.1.
|
5
|
+
version: 2.1.1
|
6
6
|
platform: java
|
7
7
|
authors:
|
8
8
|
- The TorqueBox Team
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2012-
|
13
|
+
date: 2012-08-27 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|
@@ -42,7 +42,7 @@ dependencies:
|
|
42
42
|
requirements:
|
43
43
|
- - "="
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version: 2.1.
|
45
|
+
version: 2.1.1
|
46
46
|
type: :runtime
|
47
47
|
version_requirements: *id003
|
48
48
|
- !ruby/object:Gem::Dependency
|
@@ -53,7 +53,7 @@ dependencies:
|
|
53
53
|
requirements:
|
54
54
|
- - "="
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: 2.1.
|
56
|
+
version: 2.1.1
|
57
57
|
type: :runtime
|
58
58
|
version_requirements: *id004
|
59
59
|
- !ruby/object:Gem::Dependency
|
@@ -91,18 +91,18 @@ files:
|
|
91
91
|
- licenses/lgpl-2.1.txt
|
92
92
|
- lib/torquebox-cache.jar
|
93
93
|
- lib/torquebox-cache.rb
|
94
|
-
- lib/polyglot-cache-1.7.
|
95
|
-
- lib/polyglot-core-1.7.
|
96
|
-
- lib/gem_hook.rb
|
94
|
+
- lib/polyglot-cache-1.7.2.jar
|
95
|
+
- lib/polyglot-core-1.7.2.jar
|
97
96
|
- lib/cache.rb
|
98
97
|
- lib/cache_listener.rb
|
99
98
|
- lib/sequence.rb
|
99
|
+
- lib/gem_hook.rb
|
100
100
|
- lib/active_support/cache/torque_box_store.rb
|
101
|
+
- spec/spec.opts
|
101
102
|
- spec/cache_listener_spec.rb
|
102
|
-
- spec/spec_helper.rb
|
103
|
-
- spec/cache_spec.rb
|
104
103
|
- spec/gem_hook_spec.rb
|
105
|
-
- spec/
|
104
|
+
- spec/cache_spec.rb
|
105
|
+
- spec/spec_helper.rb
|
106
106
|
- spec/torque_box_store_spec.rb
|
107
107
|
homepage: http://torquebox.org/
|
108
108
|
licenses:
|
@@ -133,6 +133,6 @@ specification_version: 3
|
|
133
133
|
summary: TorqueBox Cache Gem
|
134
134
|
test_files:
|
135
135
|
- spec/cache_listener_spec.rb
|
136
|
-
- spec/cache_spec.rb
|
137
136
|
- spec/gem_hook_spec.rb
|
137
|
+
- spec/cache_spec.rb
|
138
138
|
- spec/torque_box_store_spec.rb
|