memcache-client 1.5.0 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.txt +71 -0
- data/LICENSE.txt +2 -2
- data/README.rdoc +43 -0
- data/Rakefile +20 -13
- data/ext/memcache/binary_search.c +54 -0
- data/ext/memcache/extconf.rb +5 -0
- data/lib/continuum.rb +46 -0
- data/lib/memcache.rb +335 -244
- data/lib/memcache_util.rb +20 -8
- data/test/test_mem_cache.rb +259 -53
- metadata +46 -87
- data.tar.gz.sig +0 -0
- data/Manifest.txt +0 -8
- data/README.txt +0 -54
- metadata.gz.sig +0 -0
metadata
CHANGED
@@ -1,103 +1,62 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.9.4.3
|
3
|
-
specification_version: 1
|
4
2
|
name: memcache-client
|
5
3
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
-
|
11
|
-
|
12
|
-
homepage: http://seattlerb.org/memcache-client
|
13
|
-
rubyforge_project: seattlerb
|
14
|
-
description: memcache-client is a client for Danga Interactive's memcached.
|
4
|
+
version: 1.6.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Eric Hodel
|
8
|
+
- Robert Cottrell
|
9
|
+
- Mike Perham
|
15
10
|
autorequire:
|
16
|
-
default_executable:
|
17
11
|
bindir: bin
|
18
|
-
|
12
|
+
cert_chain: []
|
13
|
+
|
14
|
+
date: 2009-02-04 00:00:00 -06:00
|
15
|
+
default_executable:
|
16
|
+
dependencies: []
|
17
|
+
|
18
|
+
description: A Ruby library for accessing memcached.
|
19
|
+
email: mperham@gmail.com
|
20
|
+
executables: []
|
21
|
+
|
22
|
+
extensions:
|
23
|
+
- ext/memcache/extconf.rb
|
24
|
+
extra_rdoc_files: []
|
25
|
+
|
26
|
+
files:
|
27
|
+
- README.rdoc
|
28
|
+
- LICENSE.txt
|
29
|
+
- History.txt
|
30
|
+
- Rakefile
|
31
|
+
- lib/continuum.rb
|
32
|
+
- lib/memcache.rb
|
33
|
+
- lib/memcache_util.rb
|
34
|
+
- ext/memcache/binary_search.c
|
35
|
+
has_rdoc: false
|
36
|
+
homepage: http://github.com/mperham/memcache-client
|
37
|
+
post_install_message:
|
38
|
+
rdoc_options: []
|
39
|
+
|
40
|
+
require_paths:
|
41
|
+
- lib
|
19
42
|
required_ruby_version: !ruby/object:Gem::Requirement
|
20
43
|
requirements:
|
21
|
-
- - "
|
44
|
+
- - ">="
|
22
45
|
- !ruby/object:Gem::Version
|
23
|
-
version: 0
|
46
|
+
version: "0"
|
24
47
|
version:
|
25
48
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
26
49
|
requirements:
|
27
|
-
- - "
|
50
|
+
- - ">="
|
28
51
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0
|
52
|
+
version: "0"
|
30
53
|
version:
|
31
|
-
|
32
|
-
signing_key:
|
33
|
-
cert_chain:
|
34
|
-
- |
|
35
|
-
-----BEGIN CERTIFICATE-----
|
36
|
-
MIIDNjCCAh6gAwIBAgIBADANBgkqhkiG9w0BAQUFADBBMRAwDgYDVQQDDAdkcmJy
|
37
|
-
YWluMRgwFgYKCZImiZPyLGQBGRYIc2VnbWVudDcxEzARBgoJkiaJk/IsZAEZFgNu
|
38
|
-
ZXQwHhcNMDcwODE0MDAwMjIzWhcNMDgwODEzMDAwMjIzWjBBMRAwDgYDVQQDDAdk
|
39
|
-
cmJyYWluMRgwFgYKCZImiZPyLGQBGRYIc2VnbWVudDcxEzARBgoJkiaJk/IsZAEZ
|
40
|
-
FgNuZXQwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDVZUNKmnp8LrkM
|
41
|
-
bQd5ZrcTV1R7woai4clBLUjH3DL47r+f6d5dz+gJUegZ3RKWdSvOfaRmXFkr2+nv
|
42
|
-
vc6uzcxk9w1uN5Z3w+BCeKtsUR8EtUhH8b26HDNGDeuoTX1gEgm4DacBh1/Ib+SQ
|
43
|
-
PxLVkFnWiCekGvL7jzecw6UwADn49Ag4NxIvpN0ttsYCQFMDuqzdISjurbb3dZ2z
|
44
|
-
OsaDqdW29c3Jed816kVhOzRZ2EC4BExPtEN6xZCwab6f9tzJT+Atea7PRFLm/T7t
|
45
|
-
QFBPGC2XjPUXJxTyz+8PEDDb2PXeZwPSDIysq1tzB55A3rE1a5pLvnBfek5KjC25
|
46
|
-
0wuuKuxlAgMBAAGjOTA3MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQW
|
47
|
-
BBStuxfp/gfzqL+3k7tFe8gVU9zpvDANBgkqhkiG9w0BAQUFAAOCAQEAvnmUelUN
|
48
|
-
s9f/VasT9mZV4tIP3sKi0uqyq9i7vtDgCNFw0BAKNxa6ybO1CrBBnjDMa4hvhrW8
|
49
|
-
qCLkx7BFHGV/eWR3pdwcLAS8cLuEib75nuG1lbG2yIvGSYTyQ/oxbmuUAZxpavK2
|
50
|
-
101OludXvBC9hpA4Qz3UhJYBdtT8TuztiFGLzhCJusjUD7I6Y+TrrTPkBGceVVyY
|
51
|
-
hx8aJk+44+jvzgsTi4MyrRo4lAGsQxFa1f1IBuEgqNPdML31yGO0QKof+IqPiVNo
|
52
|
-
HsCQoSWkgfQE0DHTgx+hWkF2d10+54I4aM9tIROeGACQemcj0IRf3v7Au8I+6PWl
|
53
|
-
3E1oHz01aNcUFA==
|
54
|
-
-----END CERTIFICATE-----
|
54
|
+
requirements: []
|
55
55
|
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
- History.txt
|
62
|
-
- LICENSE.txt
|
63
|
-
- Manifest.txt
|
64
|
-
- README.txt
|
65
|
-
- Rakefile
|
66
|
-
- lib/memcache.rb
|
67
|
-
- lib/memcache_util.rb
|
68
|
-
- test/test_mem_cache.rb
|
56
|
+
rubyforge_project: seattlerb
|
57
|
+
rubygems_version: 1.3.1
|
58
|
+
signing_key:
|
59
|
+
specification_version: 2
|
60
|
+
summary: A Ruby library for accessing memcached.
|
69
61
|
test_files:
|
70
62
|
- test/test_mem_cache.rb
|
71
|
-
rdoc_options:
|
72
|
-
- --main
|
73
|
-
- README.txt
|
74
|
-
extra_rdoc_files:
|
75
|
-
- History.txt
|
76
|
-
- LICENSE.txt
|
77
|
-
- Manifest.txt
|
78
|
-
- README.txt
|
79
|
-
executables: []
|
80
|
-
|
81
|
-
extensions: []
|
82
|
-
|
83
|
-
requirements: []
|
84
|
-
|
85
|
-
dependencies:
|
86
|
-
- !ruby/object:Gem::Dependency
|
87
|
-
name: ZenTest
|
88
|
-
version_requirement:
|
89
|
-
version_requirements: !ruby/object:Gem::Requirement
|
90
|
-
requirements:
|
91
|
-
- - ">="
|
92
|
-
- !ruby/object:Gem::Version
|
93
|
-
version: 3.4.2
|
94
|
-
version:
|
95
|
-
- !ruby/object:Gem::Dependency
|
96
|
-
name: hoe
|
97
|
-
version_requirement:
|
98
|
-
version_requirements: !ruby/object:Gem::Requirement
|
99
|
-
requirements:
|
100
|
-
- - ">="
|
101
|
-
- !ruby/object:Gem::Version
|
102
|
-
version: 1.3.0
|
103
|
-
version:
|
data.tar.gz.sig
DELETED
Binary file
|
data/Manifest.txt
DELETED
data/README.txt
DELETED
@@ -1,54 +0,0 @@
|
|
1
|
-
= memcache-client
|
2
|
-
|
3
|
-
Rubyforge Project:
|
4
|
-
|
5
|
-
http://rubyforge.org/projects/seattlerb
|
6
|
-
|
7
|
-
File bugs:
|
8
|
-
|
9
|
-
http://rubyforge.org/tracker/?func=add&group_id=1513&atid=5921
|
10
|
-
|
11
|
-
Documentation:
|
12
|
-
|
13
|
-
http://seattlerb.org/memcache-client
|
14
|
-
|
15
|
-
== About
|
16
|
-
|
17
|
-
memcache-client is a client for Danga Interactive's memcached.
|
18
|
-
|
19
|
-
== Installing memcache-client
|
20
|
-
|
21
|
-
Just install the gem:
|
22
|
-
|
23
|
-
$ sudo gem install memcache-client
|
24
|
-
|
25
|
-
== Using memcache-client
|
26
|
-
|
27
|
-
With one server:
|
28
|
-
|
29
|
-
CACHE = MemCache.new 'localhost:11211', :namespace => 'my_namespace'
|
30
|
-
|
31
|
-
Or with multiple servers:
|
32
|
-
|
33
|
-
CACHE = MemCache.new %w[one.example.com:11211 two.example.com:11211],
|
34
|
-
:namespace => 'my_namespace'
|
35
|
-
|
36
|
-
See MemCache.new for details.
|
37
|
-
|
38
|
-
=== Using memcache-client with Rails
|
39
|
-
|
40
|
-
Rails will automatically load the memcache-client gem, but you may
|
41
|
-
need to uninstall Ruby-memcache, I don't know which one will get
|
42
|
-
picked by default.
|
43
|
-
|
44
|
-
Add your environment-specific caches to config/environment/*. If you run both
|
45
|
-
development and production on the same memcached server sets, be sure
|
46
|
-
to use different namespaces. Be careful when running tests using
|
47
|
-
memcache, you may get strange results. It will be less of a headache
|
48
|
-
to simply use a readonly memcache when testing.
|
49
|
-
|
50
|
-
memcache-client also comes with a wrapper called Cache in memcache_util.rb for
|
51
|
-
use with Rails. To use it be sure to assign your memcache connection to
|
52
|
-
CACHE. Cache returns nil on all memcache errors so you don't have to rescue
|
53
|
-
the errors yourself. It has #get, #put and #delete module functions.
|
54
|
-
|
metadata.gz.sig
DELETED
Binary file
|