roma-client 0.3.7
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +674 -0
- data/README +17 -0
- data/Rakefile +59 -0
- data/bin/rcdaemon +6 -0
- data/bin/sample +23 -0
- data/bin/showbalance +6 -0
- data/lib/roma/client/client_rttable.rb +77 -0
- data/lib/roma/client/con_pool.rb +76 -0
- data/lib/roma/client/proxy/daemon.rb +281 -0
- data/lib/roma/client/proxy/version.rb +25 -0
- data/lib/roma/client/rclient.rb +409 -0
- data/lib/roma/client/rlogger.rb +148 -0
- data/lib/roma/client/routing/routing_data.rb +241 -0
- data/lib/roma/client/sender.rb +155 -0
- data/lib/roma/client/tools/showbalance.rb +33 -0
- data/lib/roma/client/version.rb +25 -0
- data/lib/roma/client.rb +22 -0
- metadata +75 -0
data/lib/roma/client.rb
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'roma/client/rclient'
|
2
|
+
|
3
|
+
# = Overview
|
4
|
+
# The ROMA client library is used for roma client.
|
5
|
+
#
|
6
|
+
# == Example
|
7
|
+
# require 'rubygems'
|
8
|
+
# require 'roma/client'
|
9
|
+
#
|
10
|
+
# nodes = ['host1:11211', 'host2:11211']
|
11
|
+
# client = Roma::Client::RomaClient.new(nodes)
|
12
|
+
#
|
13
|
+
# key = 'key'
|
14
|
+
# res = client.set(key, 'valie')
|
15
|
+
# puts "put:#{res}"
|
16
|
+
#
|
17
|
+
# puts "get:#{client.get key}"
|
18
|
+
#
|
19
|
+
# res = client.delete key
|
20
|
+
# puts "del:#{res}"
|
21
|
+
# puts "get:#{client.get key}"
|
22
|
+
#
|
metadata
ADDED
@@ -0,0 +1,75 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: roma-client
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.3.7
|
5
|
+
platform: ruby
|
6
|
+
authors: []
|
7
|
+
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2010-02-19 00:00:00 +09:00
|
13
|
+
default_executable:
|
14
|
+
dependencies: []
|
15
|
+
|
16
|
+
description: " ROMA client library\n"
|
17
|
+
email:
|
18
|
+
executables: []
|
19
|
+
|
20
|
+
extensions: []
|
21
|
+
|
22
|
+
extra_rdoc_files:
|
23
|
+
- README
|
24
|
+
files:
|
25
|
+
- Rakefile
|
26
|
+
- README
|
27
|
+
- LICENSE
|
28
|
+
- bin/sample
|
29
|
+
- bin/rcdaemon
|
30
|
+
- bin/showbalance
|
31
|
+
- lib/roma/client/proxy/version.rb
|
32
|
+
- lib/roma/client/proxy/daemon.rb
|
33
|
+
- lib/roma/client/tools/showbalance.rb
|
34
|
+
- lib/roma/client/con_pool.rb
|
35
|
+
- lib/roma/client/version.rb
|
36
|
+
- lib/roma/client/sender.rb
|
37
|
+
- lib/roma/client/rlogger.rb
|
38
|
+
- lib/roma/client/routing/routing_data.rb
|
39
|
+
- lib/roma/client/rclient.rb
|
40
|
+
- lib/roma/client/client_rttable.rb
|
41
|
+
- lib/roma/client.rb
|
42
|
+
has_rdoc: true
|
43
|
+
homepage:
|
44
|
+
licenses: []
|
45
|
+
|
46
|
+
post_install_message:
|
47
|
+
rdoc_options:
|
48
|
+
- --line-numbers
|
49
|
+
- --inline-source
|
50
|
+
- --main
|
51
|
+
- README.rdoc
|
52
|
+
- -c UTF-8
|
53
|
+
require_paths:
|
54
|
+
- lib
|
55
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - ">="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: "0"
|
60
|
+
version:
|
61
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
62
|
+
requirements:
|
63
|
+
- - ">="
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: "0"
|
66
|
+
version:
|
67
|
+
requirements: []
|
68
|
+
|
69
|
+
rubyforge_project:
|
70
|
+
rubygems_version: 1.3.5
|
71
|
+
signing_key:
|
72
|
+
specification_version: 3
|
73
|
+
summary: ROMA client library
|
74
|
+
test_files: []
|
75
|
+
|