memcache 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/ext/extconf.rb +3 -0
- data/lib/memcache/segmented_server.rb +2 -1
- data/memcache.gemspec +3 -2
- metadata +4 -4
data/VERSION.yml
CHANGED
data/ext/extconf.rb
ADDED
@@ -85,8 +85,9 @@ class Memcache
|
|
85
85
|
def store_segments(key, value, expiry = 0, flags = 0)
|
86
86
|
if value and value.size > MAX_SIZE
|
87
87
|
master_key, parts = segment(key, value)
|
88
|
+
expiry += 1 unless expiry == 0 # We want the segments to expire slightly after the master key.
|
88
89
|
parts.each do |hash, data|
|
89
|
-
set(hash, data, expiry
|
90
|
+
set(hash, data, expiry)
|
90
91
|
end
|
91
92
|
[master_key, flags | PARTIAL_VALUE]
|
92
93
|
else
|
data/memcache.gemspec
CHANGED
@@ -5,13 +5,14 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{memcache}
|
8
|
-
s.version = "1.
|
8
|
+
s.version = "1.2.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Justin Balthrop"]
|
12
|
-
s.date = %q{2009-
|
12
|
+
s.date = %q{2009-12-17}
|
13
13
|
s.description = %q{Ruby client for memcached supporting advanced protocol features and pluggable architecture.}
|
14
14
|
s.email = %q{code@justinbalthrop.com}
|
15
|
+
s.extensions = ["ext/extconf.rb"]
|
15
16
|
s.extra_rdoc_files = [
|
16
17
|
"LICENSE",
|
17
18
|
"README.rdoc"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: memcache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Balthrop
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-12-17 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -17,8 +17,8 @@ description: Ruby client for memcached supporting advanced protocol features and
|
|
17
17
|
email: code@justinbalthrop.com
|
18
18
|
executables: []
|
19
19
|
|
20
|
-
extensions:
|
21
|
-
|
20
|
+
extensions:
|
21
|
+
- ext/extconf.rb
|
22
22
|
extra_rdoc_files:
|
23
23
|
- LICENSE
|
24
24
|
- README.rdoc
|