redis_object 0.5.0 → 1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +0 -2
- data/Gemfile +0 -4
- data/README.markdown +15 -24
- data/Rakefile +0 -8
- data/doc/Object.html +185 -0
- data/doc/Seabright.html +181 -0
- data/doc/Seabright/Adapter.html +442 -0
- data/doc/Seabright/Collection.html +797 -0
- data/doc/Seabright/Collections.html +635 -0
- data/doc/Seabright/Collections/ClassMethods.html +212 -0
- data/doc/Seabright/ExternalIndex.html +217 -0
- data/doc/Seabright/History.html +382 -0
- data/doc/Seabright/History/ClassMethods.html +276 -0
- data/doc/Seabright/Indices.html +324 -0
- data/doc/Seabright/Indices/ClassMethods.html +348 -0
- data/doc/Seabright/Keys.html +314 -0
- data/doc/Seabright/Keys/ClassMethods.html +276 -0
- data/doc/Seabright/ObjectBase.html +852 -0
- data/doc/Seabright/ObjectBase/ClassMethods.html +677 -0
- data/doc/Seabright/RedisObject.html +230 -0
- data/doc/Seabright/References.html +280 -0
- data/doc/Seabright/Storage.html +252 -0
- data/doc/Seabright/Storage/ClassMethods.html +276 -0
- data/doc/Seabright/Storage/MySQL.html +442 -0
- data/doc/Seabright/Storage/Redis.html +218 -0
- data/doc/Seabright/Template.html +212 -0
- data/doc/Seabright/Template/ClassMethods.html +166 -0
- data/doc/Seabright/Timestamps.html +292 -0
- data/doc/Seabright/Timestamps/ClassMethods.html +214 -0
- data/doc/Seabright/Types.html +410 -0
- data/doc/Seabright/Types/ClassMethods.html +308 -0
- data/doc/created.rid +17 -0
- data/doc/images/add.png +0 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/delete.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/transparent.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +125 -0
- data/doc/js/darkfish.js +153 -0
- data/doc/js/jquery.js +18 -0
- data/doc/js/navigation.js +142 -0
- data/doc/js/search.js +94 -0
- data/doc/js/search_index.js +1 -0
- data/doc/js/searcher.js +228 -0
- data/doc/rdoc.css +543 -0
- data/doc/table_of_contents.html +394 -0
- data/lib/redis_object.rb +1 -11
- data/lib/redis_object/base.rb +60 -210
- data/lib/redis_object/collection.rb +100 -130
- data/lib/redis_object/defaults.rb +8 -21
- data/lib/redis_object/ext/filters.rb +16 -34
- data/lib/redis_object/ext/triggers.rb +13 -75
- data/lib/redis_object/{experimental/history.rb → history.rb} +0 -0
- data/lib/redis_object/indices.rb +39 -44
- data/lib/redis_object/keys.rb +4 -4
- data/lib/redis_object/storage.rb +1 -30
- data/lib/redis_object/storage/adapter.rb +3 -6
- data/lib/redis_object/storage/redis.rb +3 -98
- data/lib/redis_object/timestamps.rb +21 -42
- data/lib/redis_object/types.rb +30 -172
- data/lib/redis_object/version.rb +1 -1
- data/redis_object.gemspec +0 -1
- data/spec/base_spec.rb +6 -41
- data/spec/spec_helper.rb +1 -32
- metadata +116 -111
- data/.coveralls.yml +0 -1
- data/.travis.yml +0 -5
- data/lib/redis_object/ext/script_cache.rb +0 -92
- data/lib/redis_object/ext/shardable.rb +0 -18
- data/lib/redis_object/ext/view_caching.rb +0 -258
- data/lib/redis_object/ext/views.rb +0 -102
- data/lib/redis_object/inheritance_tracking.rb +0 -23
- data/spec/adapter_spec.rb +0 -43
- data/spec/benchmark_spec.rb +0 -46
- data/spec/collections_spec.rb +0 -144
- data/spec/defaults_spec.rb +0 -56
- data/spec/filters_spec.rb +0 -29
- data/spec/indices_spec.rb +0 -45
- data/spec/rename_class_spec.rb +0 -96
- data/spec/timestamp_spec.rb +0 -28
- data/spec/trigger_spec.rb +0 -51
- data/spec/types_spec.rb +0 -103
- data/spec/view_caching_spec.rb +0 -130
- data/spec/views_spec.rb +0 -72
@@ -0,0 +1,212 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
+
|
7
|
+
<title>module Seabright::Collections::ClassMethods - StubbornObject</title>
|
8
|
+
|
9
|
+
<link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet">
|
10
|
+
|
11
|
+
<script type="text/javascript">
|
12
|
+
var rdoc_rel_prefix = "../../";
|
13
|
+
</script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
16
|
+
<script type="text/javascript" charset="utf-8" src="../../js/navigation.js"></script>
|
17
|
+
<script type="text/javascript" charset="utf-8" src="../../js/search_index.js"></script>
|
18
|
+
<script type="text/javascript" charset="utf-8" src="../../js/search.js"></script>
|
19
|
+
<script type="text/javascript" charset="utf-8" src="../../js/searcher.js"></script>
|
20
|
+
<script type="text/javascript" charset="utf-8" src="../../js/darkfish.js"></script>
|
21
|
+
|
22
|
+
|
23
|
+
<body id="top" class="module">
|
24
|
+
<nav id="metadata">
|
25
|
+
<nav id="home-section" class="section">
|
26
|
+
<h3 class="section-header">
|
27
|
+
<a href="../../index.html">Home</a>
|
28
|
+
<a href="../../table_of_contents.html#classes">Classes</a>
|
29
|
+
<a href="../../table_of_contents.html#methods">Methods</a>
|
30
|
+
</h3>
|
31
|
+
</nav>
|
32
|
+
|
33
|
+
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
+
<form action="#" method="get" accept-charset="utf-8">
|
36
|
+
<h3 class="section-header">
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
+
</h3>
|
40
|
+
</form>
|
41
|
+
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
+
</nav>
|
44
|
+
|
45
|
+
|
46
|
+
<div id="file-metadata">
|
47
|
+
<nav id="file-list-section" class="section">
|
48
|
+
<h3 class="section-header">Defined In</h3>
|
49
|
+
<ul>
|
50
|
+
<li>lib/redis_object/collection.rb
|
51
|
+
</ul>
|
52
|
+
</nav>
|
53
|
+
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<div id="class-metadata">
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
<!-- Method Quickref -->
|
62
|
+
<nav id="method-list-section" class="section">
|
63
|
+
<h3 class="section-header">Methods</h3>
|
64
|
+
|
65
|
+
<ul class="link-list">
|
66
|
+
|
67
|
+
<li><a href="#method-i-hkey_col">#hkey_col</a>
|
68
|
+
|
69
|
+
</ul>
|
70
|
+
</nav>
|
71
|
+
|
72
|
+
</div>
|
73
|
+
|
74
|
+
<div id="project-metadata">
|
75
|
+
|
76
|
+
<nav id="classindex-section" class="section project-section">
|
77
|
+
<h3 class="section-header">Class and Module Index</h3>
|
78
|
+
|
79
|
+
<ul class="link-list">
|
80
|
+
|
81
|
+
<li><a href="../../Seabright.html">Seabright</a>
|
82
|
+
|
83
|
+
<li><a href="../../Seabright/Adapter.html">Seabright::Adapter</a>
|
84
|
+
|
85
|
+
<li><a href="../../Seabright/Collection.html">Seabright::Collection</a>
|
86
|
+
|
87
|
+
<li><a href="../../Seabright/Collections.html">Seabright::Collections</a>
|
88
|
+
|
89
|
+
<li><a href="../../Seabright/Collections/ClassMethods.html">Seabright::Collections::ClassMethods</a>
|
90
|
+
|
91
|
+
<li><a href="../../Seabright/ExternalIndex.html">Seabright::ExternalIndex</a>
|
92
|
+
|
93
|
+
<li><a href="../../Seabright/History.html">Seabright::History</a>
|
94
|
+
|
95
|
+
<li><a href="../../Seabright/History/ClassMethods.html">Seabright::History::ClassMethods</a>
|
96
|
+
|
97
|
+
<li><a href="../../Seabright/Indices.html">Seabright::Indices</a>
|
98
|
+
|
99
|
+
<li><a href="../../Seabright/Indices/ClassMethods.html">Seabright::Indices::ClassMethods</a>
|
100
|
+
|
101
|
+
<li><a href="../../Seabright/Keys.html">Seabright::Keys</a>
|
102
|
+
|
103
|
+
<li><a href="../../Seabright/Keys/ClassMethods.html">Seabright::Keys::ClassMethods</a>
|
104
|
+
|
105
|
+
<li><a href="../../Seabright/ObjectBase.html">Seabright::ObjectBase</a>
|
106
|
+
|
107
|
+
<li><a href="../../Seabright/ObjectBase/ClassMethods.html">Seabright::ObjectBase::ClassMethods</a>
|
108
|
+
|
109
|
+
<li><a href="../../Seabright/RedisObject.html">Seabright::RedisObject</a>
|
110
|
+
|
111
|
+
<li><a href="../../Seabright/RedisObject.html">Seabright::RedisObject</a>
|
112
|
+
|
113
|
+
<li><a href="../../Seabright/References.html">Seabright::References</a>
|
114
|
+
|
115
|
+
<li><a href="../../Seabright/Storage.html">Seabright::Storage</a>
|
116
|
+
|
117
|
+
<li><a href="../../Seabright/Storage/ClassMethods.html">Seabright::Storage::ClassMethods</a>
|
118
|
+
|
119
|
+
<li><a href="../../Seabright/Storage/MySQL.html">Seabright::Storage::MySQL</a>
|
120
|
+
|
121
|
+
<li><a href="../../Seabright/Storage/Redis.html">Seabright::Storage::Redis</a>
|
122
|
+
|
123
|
+
<li><a href="../../Seabright/Template.html">Seabright::Template</a>
|
124
|
+
|
125
|
+
<li><a href="../../Seabright/Template/ClassMethods.html">Seabright::Template::ClassMethods</a>
|
126
|
+
|
127
|
+
<li><a href="../../Seabright/Timestamps.html">Seabright::Timestamps</a>
|
128
|
+
|
129
|
+
<li><a href="../../Seabright/Timestamps/ClassMethods.html">Seabright::Timestamps::ClassMethods</a>
|
130
|
+
|
131
|
+
<li><a href="../../Seabright/Types.html">Seabright::Types</a>
|
132
|
+
|
133
|
+
<li><a href="../../Seabright/Types/ClassMethods.html">Seabright::Types::ClassMethods</a>
|
134
|
+
|
135
|
+
<li><a href="../../Object.html">Object</a>
|
136
|
+
|
137
|
+
<li><a href="../../Seabright/RedisObject.html">Object::RedisObject</a>
|
138
|
+
|
139
|
+
</ul>
|
140
|
+
</nav>
|
141
|
+
|
142
|
+
</div>
|
143
|
+
</nav>
|
144
|
+
|
145
|
+
<div id="documentation">
|
146
|
+
<h1 class="module">module Seabright::Collections::ClassMethods</h1>
|
147
|
+
|
148
|
+
<div id="description" class="description">
|
149
|
+
|
150
|
+
</div><!-- description -->
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
<!-- Methods -->
|
165
|
+
|
166
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
167
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
168
|
+
|
169
|
+
|
170
|
+
<div id="method-i-hkey_col" class="method-detail ">
|
171
|
+
|
172
|
+
<div class="method-heading">
|
173
|
+
<span class="method-name">hkey_col</span><span
|
174
|
+
class="method-args">(ident = id, prnt = nil)</span>
|
175
|
+
<span class="method-click-advice">click to toggle source</span>
|
176
|
+
</div>
|
177
|
+
|
178
|
+
|
179
|
+
<div class="method-description">
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
<div class="method-source-code" id="hkey_col-source">
|
186
|
+
<pre><span class="ruby-comment"># File lib/redis_object/collection.rb, line 84</span>
|
187
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">hkey_col</span>(<span class="ruby-identifier">ident</span> = <span class="ruby-identifier">id</span>, <span class="ruby-identifier">prnt</span> = <span class="ruby-keyword">nil</span>)
|
188
|
+
<span class="ruby-node">"#{hkey(ident,prnt)}:collections"</span>
|
189
|
+
<span class="ruby-keyword">end</span></pre>
|
190
|
+
</div><!-- hkey_col-source -->
|
191
|
+
|
192
|
+
</div>
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
</div><!-- hkey_col-method -->
|
198
|
+
|
199
|
+
|
200
|
+
</section><!-- public-instance-method-details -->
|
201
|
+
|
202
|
+
</section><!-- 5Buntitled-5D -->
|
203
|
+
|
204
|
+
</div><!-- documentation -->
|
205
|
+
|
206
|
+
|
207
|
+
<footer id="validator-badges">
|
208
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
209
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
|
210
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
211
|
+
</footer>
|
212
|
+
|
@@ -0,0 +1,217 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
+
|
7
|
+
<title>class Seabright::ExternalIndex - StubbornObject</title>
|
8
|
+
|
9
|
+
<link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
|
10
|
+
|
11
|
+
<script type="text/javascript">
|
12
|
+
var rdoc_rel_prefix = "../";
|
13
|
+
</script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
16
|
+
<script type="text/javascript" charset="utf-8" src="../js/navigation.js"></script>
|
17
|
+
<script type="text/javascript" charset="utf-8" src="../js/search_index.js"></script>
|
18
|
+
<script type="text/javascript" charset="utf-8" src="../js/search.js"></script>
|
19
|
+
<script type="text/javascript" charset="utf-8" src="../js/searcher.js"></script>
|
20
|
+
<script type="text/javascript" charset="utf-8" src="../js/darkfish.js"></script>
|
21
|
+
|
22
|
+
|
23
|
+
<body id="top" class="class">
|
24
|
+
<nav id="metadata">
|
25
|
+
<nav id="home-section" class="section">
|
26
|
+
<h3 class="section-header">
|
27
|
+
<a href="../index.html">Home</a>
|
28
|
+
<a href="../table_of_contents.html#classes">Classes</a>
|
29
|
+
<a href="../table_of_contents.html#methods">Methods</a>
|
30
|
+
</h3>
|
31
|
+
</nav>
|
32
|
+
|
33
|
+
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
+
<form action="#" method="get" accept-charset="utf-8">
|
36
|
+
<h3 class="section-header">
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
+
</h3>
|
40
|
+
</form>
|
41
|
+
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
+
</nav>
|
44
|
+
|
45
|
+
|
46
|
+
<div id="file-metadata">
|
47
|
+
<nav id="file-list-section" class="section">
|
48
|
+
<h3 class="section-header">Defined In</h3>
|
49
|
+
<ul>
|
50
|
+
<li>lib/redis_object/external_index.rb
|
51
|
+
</ul>
|
52
|
+
</nav>
|
53
|
+
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<div id="class-metadata">
|
58
|
+
|
59
|
+
<nav id="parent-class-section" class="section">
|
60
|
+
<h3 class="section-header">Parent</h3>
|
61
|
+
|
62
|
+
<p class="link"><a href="../Object.html">Object</a>
|
63
|
+
|
64
|
+
</nav>
|
65
|
+
|
66
|
+
|
67
|
+
<!-- Method Quickref -->
|
68
|
+
<nav id="method-list-section" class="section">
|
69
|
+
<h3 class="section-header">Methods</h3>
|
70
|
+
|
71
|
+
<ul class="link-list">
|
72
|
+
|
73
|
+
<li><a href="#method-c-buildthisout">::buildthisout</a>
|
74
|
+
|
75
|
+
</ul>
|
76
|
+
</nav>
|
77
|
+
|
78
|
+
</div>
|
79
|
+
|
80
|
+
<div id="project-metadata">
|
81
|
+
|
82
|
+
<nav id="classindex-section" class="section project-section">
|
83
|
+
<h3 class="section-header">Class and Module Index</h3>
|
84
|
+
|
85
|
+
<ul class="link-list">
|
86
|
+
|
87
|
+
<li><a href="../Seabright.html">Seabright</a>
|
88
|
+
|
89
|
+
<li><a href="../Seabright/Adapter.html">Seabright::Adapter</a>
|
90
|
+
|
91
|
+
<li><a href="../Seabright/Collection.html">Seabright::Collection</a>
|
92
|
+
|
93
|
+
<li><a href="../Seabright/Collections.html">Seabright::Collections</a>
|
94
|
+
|
95
|
+
<li><a href="../Seabright/Collections/ClassMethods.html">Seabright::Collections::ClassMethods</a>
|
96
|
+
|
97
|
+
<li><a href="../Seabright/ExternalIndex.html">Seabright::ExternalIndex</a>
|
98
|
+
|
99
|
+
<li><a href="../Seabright/History.html">Seabright::History</a>
|
100
|
+
|
101
|
+
<li><a href="../Seabright/History/ClassMethods.html">Seabright::History::ClassMethods</a>
|
102
|
+
|
103
|
+
<li><a href="../Seabright/Indices.html">Seabright::Indices</a>
|
104
|
+
|
105
|
+
<li><a href="../Seabright/Indices/ClassMethods.html">Seabright::Indices::ClassMethods</a>
|
106
|
+
|
107
|
+
<li><a href="../Seabright/Keys.html">Seabright::Keys</a>
|
108
|
+
|
109
|
+
<li><a href="../Seabright/Keys/ClassMethods.html">Seabright::Keys::ClassMethods</a>
|
110
|
+
|
111
|
+
<li><a href="../Seabright/ObjectBase.html">Seabright::ObjectBase</a>
|
112
|
+
|
113
|
+
<li><a href="../Seabright/ObjectBase/ClassMethods.html">Seabright::ObjectBase::ClassMethods</a>
|
114
|
+
|
115
|
+
<li><a href="../Seabright/RedisObject.html">Seabright::RedisObject</a>
|
116
|
+
|
117
|
+
<li><a href="../Seabright/RedisObject.html">Seabright::RedisObject</a>
|
118
|
+
|
119
|
+
<li><a href="../Seabright/References.html">Seabright::References</a>
|
120
|
+
|
121
|
+
<li><a href="../Seabright/Storage.html">Seabright::Storage</a>
|
122
|
+
|
123
|
+
<li><a href="../Seabright/Storage/ClassMethods.html">Seabright::Storage::ClassMethods</a>
|
124
|
+
|
125
|
+
<li><a href="../Seabright/Storage/MySQL.html">Seabright::Storage::MySQL</a>
|
126
|
+
|
127
|
+
<li><a href="../Seabright/Storage/Redis.html">Seabright::Storage::Redis</a>
|
128
|
+
|
129
|
+
<li><a href="../Seabright/Template.html">Seabright::Template</a>
|
130
|
+
|
131
|
+
<li><a href="../Seabright/Template/ClassMethods.html">Seabright::Template::ClassMethods</a>
|
132
|
+
|
133
|
+
<li><a href="../Seabright/Timestamps.html">Seabright::Timestamps</a>
|
134
|
+
|
135
|
+
<li><a href="../Seabright/Timestamps/ClassMethods.html">Seabright::Timestamps::ClassMethods</a>
|
136
|
+
|
137
|
+
<li><a href="../Seabright/Types.html">Seabright::Types</a>
|
138
|
+
|
139
|
+
<li><a href="../Seabright/Types/ClassMethods.html">Seabright::Types::ClassMethods</a>
|
140
|
+
|
141
|
+
<li><a href="../Object.html">Object</a>
|
142
|
+
|
143
|
+
<li><a href="../Seabright/RedisObject.html">Object::RedisObject</a>
|
144
|
+
|
145
|
+
</ul>
|
146
|
+
</nav>
|
147
|
+
|
148
|
+
</div>
|
149
|
+
</nav>
|
150
|
+
|
151
|
+
<div id="documentation">
|
152
|
+
<h1 class="class">class Seabright::ExternalIndex</h1>
|
153
|
+
|
154
|
+
<div id="description" class="description">
|
155
|
+
|
156
|
+
</div><!-- description -->
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
<!-- Methods -->
|
171
|
+
|
172
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section section">
|
173
|
+
<h3 class="section-header">Public Class Methods</h3>
|
174
|
+
|
175
|
+
|
176
|
+
<div id="method-c-buildthisout" class="method-detail ">
|
177
|
+
|
178
|
+
<div class="method-heading">
|
179
|
+
<span class="method-name">buildthisout</span><span
|
180
|
+
class="method-args">()</span>
|
181
|
+
<span class="method-click-advice">click to toggle source</span>
|
182
|
+
</div>
|
183
|
+
|
184
|
+
|
185
|
+
<div class="method-description">
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
<div class="method-source-code" id="buildthisout-source">
|
192
|
+
<pre><span class="ruby-comment"># File lib/redis_object/external_index.rb, line 6</span>
|
193
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">buildthisout</span>
|
194
|
+
<span class="ruby-keyword">end</span></pre>
|
195
|
+
</div><!-- buildthisout-source -->
|
196
|
+
|
197
|
+
</div>
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
</div><!-- buildthisout-method -->
|
203
|
+
|
204
|
+
|
205
|
+
</section><!-- public-class-method-details -->
|
206
|
+
|
207
|
+
</section><!-- 5Buntitled-5D -->
|
208
|
+
|
209
|
+
</div><!-- documentation -->
|
210
|
+
|
211
|
+
|
212
|
+
<footer id="validator-badges">
|
213
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
214
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
|
215
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
216
|
+
</footer>
|
217
|
+
|
@@ -0,0 +1,382 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
+
|
7
|
+
<title>module Seabright::History - StubbornObject</title>
|
8
|
+
|
9
|
+
<link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
|
10
|
+
|
11
|
+
<script type="text/javascript">
|
12
|
+
var rdoc_rel_prefix = "../";
|
13
|
+
</script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
16
|
+
<script type="text/javascript" charset="utf-8" src="../js/navigation.js"></script>
|
17
|
+
<script type="text/javascript" charset="utf-8" src="../js/search_index.js"></script>
|
18
|
+
<script type="text/javascript" charset="utf-8" src="../js/search.js"></script>
|
19
|
+
<script type="text/javascript" charset="utf-8" src="../js/searcher.js"></script>
|
20
|
+
<script type="text/javascript" charset="utf-8" src="../js/darkfish.js"></script>
|
21
|
+
|
22
|
+
|
23
|
+
<body id="top" class="module">
|
24
|
+
<nav id="metadata">
|
25
|
+
<nav id="home-section" class="section">
|
26
|
+
<h3 class="section-header">
|
27
|
+
<a href="../index.html">Home</a>
|
28
|
+
<a href="../table_of_contents.html#classes">Classes</a>
|
29
|
+
<a href="../table_of_contents.html#methods">Methods</a>
|
30
|
+
</h3>
|
31
|
+
</nav>
|
32
|
+
|
33
|
+
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
+
<form action="#" method="get" accept-charset="utf-8">
|
36
|
+
<h3 class="section-header">
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
+
</h3>
|
40
|
+
</form>
|
41
|
+
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
+
</nav>
|
44
|
+
|
45
|
+
|
46
|
+
<div id="file-metadata">
|
47
|
+
<nav id="file-list-section" class="section">
|
48
|
+
<h3 class="section-header">Defined In</h3>
|
49
|
+
<ul>
|
50
|
+
<li>lib/redis_object/history.rb
|
51
|
+
</ul>
|
52
|
+
</nav>
|
53
|
+
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<div id="class-metadata">
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
<!-- Method Quickref -->
|
62
|
+
<nav id="method-list-section" class="section">
|
63
|
+
<h3 class="section-header">Methods</h3>
|
64
|
+
|
65
|
+
<ul class="link-list">
|
66
|
+
|
67
|
+
<li><a href="#method-c-included">::included</a>
|
68
|
+
|
69
|
+
<li><a href="#method-i-history">#history</a>
|
70
|
+
|
71
|
+
<li><a href="#method-i-history_key">#history_key</a>
|
72
|
+
|
73
|
+
<li><a href="#method-i-save">#save</a>
|
74
|
+
|
75
|
+
<li><a href="#method-i-save_history-3F">#save_history?</a>
|
76
|
+
|
77
|
+
<li><a href="#method-i-store_image">#store_image</a>
|
78
|
+
|
79
|
+
</ul>
|
80
|
+
</nav>
|
81
|
+
|
82
|
+
</div>
|
83
|
+
|
84
|
+
<div id="project-metadata">
|
85
|
+
|
86
|
+
<nav id="classindex-section" class="section project-section">
|
87
|
+
<h3 class="section-header">Class and Module Index</h3>
|
88
|
+
|
89
|
+
<ul class="link-list">
|
90
|
+
|
91
|
+
<li><a href="../Seabright.html">Seabright</a>
|
92
|
+
|
93
|
+
<li><a href="../Seabright/Adapter.html">Seabright::Adapter</a>
|
94
|
+
|
95
|
+
<li><a href="../Seabright/Collection.html">Seabright::Collection</a>
|
96
|
+
|
97
|
+
<li><a href="../Seabright/Collections.html">Seabright::Collections</a>
|
98
|
+
|
99
|
+
<li><a href="../Seabright/Collections/ClassMethods.html">Seabright::Collections::ClassMethods</a>
|
100
|
+
|
101
|
+
<li><a href="../Seabright/ExternalIndex.html">Seabright::ExternalIndex</a>
|
102
|
+
|
103
|
+
<li><a href="../Seabright/History.html">Seabright::History</a>
|
104
|
+
|
105
|
+
<li><a href="../Seabright/History/ClassMethods.html">Seabright::History::ClassMethods</a>
|
106
|
+
|
107
|
+
<li><a href="../Seabright/Indices.html">Seabright::Indices</a>
|
108
|
+
|
109
|
+
<li><a href="../Seabright/Indices/ClassMethods.html">Seabright::Indices::ClassMethods</a>
|
110
|
+
|
111
|
+
<li><a href="../Seabright/Keys.html">Seabright::Keys</a>
|
112
|
+
|
113
|
+
<li><a href="../Seabright/Keys/ClassMethods.html">Seabright::Keys::ClassMethods</a>
|
114
|
+
|
115
|
+
<li><a href="../Seabright/ObjectBase.html">Seabright::ObjectBase</a>
|
116
|
+
|
117
|
+
<li><a href="../Seabright/ObjectBase/ClassMethods.html">Seabright::ObjectBase::ClassMethods</a>
|
118
|
+
|
119
|
+
<li><a href="../Seabright/RedisObject.html">Seabright::RedisObject</a>
|
120
|
+
|
121
|
+
<li><a href="../Seabright/RedisObject.html">Seabright::RedisObject</a>
|
122
|
+
|
123
|
+
<li><a href="../Seabright/References.html">Seabright::References</a>
|
124
|
+
|
125
|
+
<li><a href="../Seabright/Storage.html">Seabright::Storage</a>
|
126
|
+
|
127
|
+
<li><a href="../Seabright/Storage/ClassMethods.html">Seabright::Storage::ClassMethods</a>
|
128
|
+
|
129
|
+
<li><a href="../Seabright/Storage/MySQL.html">Seabright::Storage::MySQL</a>
|
130
|
+
|
131
|
+
<li><a href="../Seabright/Storage/Redis.html">Seabright::Storage::Redis</a>
|
132
|
+
|
133
|
+
<li><a href="../Seabright/Template.html">Seabright::Template</a>
|
134
|
+
|
135
|
+
<li><a href="../Seabright/Template/ClassMethods.html">Seabright::Template::ClassMethods</a>
|
136
|
+
|
137
|
+
<li><a href="../Seabright/Timestamps.html">Seabright::Timestamps</a>
|
138
|
+
|
139
|
+
<li><a href="../Seabright/Timestamps/ClassMethods.html">Seabright::Timestamps::ClassMethods</a>
|
140
|
+
|
141
|
+
<li><a href="../Seabright/Types.html">Seabright::Types</a>
|
142
|
+
|
143
|
+
<li><a href="../Seabright/Types/ClassMethods.html">Seabright::Types::ClassMethods</a>
|
144
|
+
|
145
|
+
<li><a href="../Object.html">Object</a>
|
146
|
+
|
147
|
+
<li><a href="../Seabright/RedisObject.html">Object::RedisObject</a>
|
148
|
+
|
149
|
+
</ul>
|
150
|
+
</nav>
|
151
|
+
|
152
|
+
</div>
|
153
|
+
</nav>
|
154
|
+
|
155
|
+
<div id="documentation">
|
156
|
+
<h1 class="module">module Seabright::History</h1>
|
157
|
+
|
158
|
+
<div id="description" class="description">
|
159
|
+
|
160
|
+
</div><!-- description -->
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
<!-- Methods -->
|
175
|
+
|
176
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section section">
|
177
|
+
<h3 class="section-header">Public Class Methods</h3>
|
178
|
+
|
179
|
+
|
180
|
+
<div id="method-c-included" class="method-detail ">
|
181
|
+
|
182
|
+
<div class="method-heading">
|
183
|
+
<span class="method-name">included</span><span
|
184
|
+
class="method-args">(base)</span>
|
185
|
+
<span class="method-click-advice">click to toggle source</span>
|
186
|
+
</div>
|
187
|
+
|
188
|
+
|
189
|
+
<div class="method-description">
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
<div class="method-source-code" id="included-source">
|
196
|
+
<pre><span class="ruby-comment"># File lib/redis_object/history.rb, line 44</span>
|
197
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">included</span>(<span class="ruby-identifier">base</span>)
|
198
|
+
<span class="ruby-identifier">base</span>.<span class="ruby-identifier">extend</span>(<span class="ruby-constant">ClassMethods</span>)
|
199
|
+
<span class="ruby-keyword">end</span></pre>
|
200
|
+
</div><!-- included-source -->
|
201
|
+
|
202
|
+
</div>
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
</div><!-- included-method -->
|
208
|
+
|
209
|
+
|
210
|
+
</section><!-- public-class-method-details -->
|
211
|
+
|
212
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
213
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
214
|
+
|
215
|
+
|
216
|
+
<div id="method-i-history" class="method-detail ">
|
217
|
+
|
218
|
+
<div class="method-heading">
|
219
|
+
<span class="method-name">history</span><span
|
220
|
+
class="method-args">(num=5,reverse=false)</span>
|
221
|
+
<span class="method-click-advice">click to toggle source</span>
|
222
|
+
</div>
|
223
|
+
|
224
|
+
|
225
|
+
<div class="method-description">
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
<div class="method-source-code" id="history-source">
|
232
|
+
<pre><span class="ruby-comment"># File lib/redis_object/history.rb, line 12</span>
|
233
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">history</span>(<span class="ruby-identifier">num</span>=<span class="ruby-value">5</span>,<span class="ruby-identifier">reverse</span>=<span class="ruby-keyword">false</span>)
|
234
|
+
<span class="ruby-identifier">parser</span> = <span class="ruby-constant">Yajl</span><span class="ruby-operator">::</span><span class="ruby-constant">Parser</span>
|
235
|
+
<span class="ruby-identifier">store</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">reverse</span> <span class="ruby-operator">?</span> <span class="ruby-value">:zrevrange</span> <span class="ruby-operator">:</span> <span class="ruby-value">:zrange</span>, <span class="ruby-identifier">history_key</span>, <span class="ruby-value">0</span>, <span class="ruby-identifier">num</span>).<span class="ruby-identifier">collect</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">member</span><span class="ruby-operator">|</span>
|
236
|
+
<span class="ruby-identifier">parser</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">member</span>)
|
237
|
+
<span class="ruby-keyword">end</span>
|
238
|
+
<span class="ruby-keyword">end</span></pre>
|
239
|
+
</div><!-- history-source -->
|
240
|
+
|
241
|
+
</div>
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
|
246
|
+
</div><!-- history-method -->
|
247
|
+
|
248
|
+
|
249
|
+
<div id="method-i-history_key" class="method-detail ">
|
250
|
+
|
251
|
+
<div class="method-heading">
|
252
|
+
<span class="method-name">history_key</span><span
|
253
|
+
class="method-args">(ident = nil, prnt = nil)</span>
|
254
|
+
<span class="method-click-advice">click to toggle source</span>
|
255
|
+
</div>
|
256
|
+
|
257
|
+
|
258
|
+
<div class="method-description">
|
259
|
+
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
<div class="method-source-code" id="history_key-source">
|
265
|
+
<pre><span class="ruby-comment"># File lib/redis_object/history.rb, line 19</span>
|
266
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">history_key</span>(<span class="ruby-identifier">ident</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">prnt</span> = <span class="ruby-keyword">nil</span>)
|
267
|
+
<span class="ruby-node">"#{key}_history"</span>
|
268
|
+
<span class="ruby-keyword">end</span></pre>
|
269
|
+
</div><!-- history_key-source -->
|
270
|
+
|
271
|
+
</div>
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
|
276
|
+
</div><!-- history_key-method -->
|
277
|
+
|
278
|
+
|
279
|
+
<div id="method-i-save" class="method-detail ">
|
280
|
+
|
281
|
+
<div class="method-heading">
|
282
|
+
<span class="method-name">save</span><span
|
283
|
+
class="method-args">()</span>
|
284
|
+
<span class="method-click-advice">click to toggle source</span>
|
285
|
+
</div>
|
286
|
+
|
287
|
+
|
288
|
+
<div class="method-description">
|
289
|
+
|
290
|
+
|
291
|
+
|
292
|
+
|
293
|
+
|
294
|
+
<div class="method-source-code" id="save-source">
|
295
|
+
<pre><span class="ruby-comment"># File lib/redis_object/history.rb, line 23</span>
|
296
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">save</span>
|
297
|
+
<span class="ruby-keyword">super</span>
|
298
|
+
<span class="ruby-identifier">store_image</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">save_history?</span>
|
299
|
+
<span class="ruby-keyword">end</span></pre>
|
300
|
+
</div><!-- save-source -->
|
301
|
+
|
302
|
+
</div>
|
303
|
+
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
</div><!-- save-method -->
|
308
|
+
|
309
|
+
|
310
|
+
<div id="method-i-save_history-3F" class="method-detail ">
|
311
|
+
|
312
|
+
<div class="method-heading">
|
313
|
+
<span class="method-name">save_history?</span><span
|
314
|
+
class="method-args">()</span>
|
315
|
+
<span class="method-click-advice">click to toggle source</span>
|
316
|
+
</div>
|
317
|
+
|
318
|
+
|
319
|
+
<div class="method-description">
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
<div class="method-source-code" id="save_history-3F-source">
|
326
|
+
<pre><span class="ruby-comment"># File lib/redis_object/history.rb, line 4</span>
|
327
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">save_history?</span>
|
328
|
+
<span class="ruby-identifier">save_history</span> <span class="ruby-operator">||</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">save_history?</span>
|
329
|
+
<span class="ruby-keyword">end</span></pre>
|
330
|
+
</div><!-- save_history-3F-source -->
|
331
|
+
|
332
|
+
</div>
|
333
|
+
|
334
|
+
|
335
|
+
|
336
|
+
|
337
|
+
</div><!-- save_history-3F-method -->
|
338
|
+
|
339
|
+
|
340
|
+
<div id="method-i-store_image" class="method-detail ">
|
341
|
+
|
342
|
+
<div class="method-heading">
|
343
|
+
<span class="method-name">store_image</span><span
|
344
|
+
class="method-args">()</span>
|
345
|
+
<span class="method-click-advice">click to toggle source</span>
|
346
|
+
</div>
|
347
|
+
|
348
|
+
|
349
|
+
<div class="method-description">
|
350
|
+
|
351
|
+
|
352
|
+
|
353
|
+
|
354
|
+
|
355
|
+
<div class="method-source-code" id="store_image-source">
|
356
|
+
<pre><span class="ruby-comment"># File lib/redis_object/history.rb, line 8</span>
|
357
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">store_image</span>
|
358
|
+
<span class="ruby-identifier">store</span>.<span class="ruby-identifier">zadd</span> <span class="ruby-identifier">history_key</span>, <span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>.<span class="ruby-identifier">to_i</span>, <span class="ruby-identifier">to_json</span>
|
359
|
+
<span class="ruby-keyword">end</span></pre>
|
360
|
+
</div><!-- store_image-source -->
|
361
|
+
|
362
|
+
</div>
|
363
|
+
|
364
|
+
|
365
|
+
|
366
|
+
|
367
|
+
</div><!-- store_image-method -->
|
368
|
+
|
369
|
+
|
370
|
+
</section><!-- public-instance-method-details -->
|
371
|
+
|
372
|
+
</section><!-- 5Buntitled-5D -->
|
373
|
+
|
374
|
+
</div><!-- documentation -->
|
375
|
+
|
376
|
+
|
377
|
+
<footer id="validator-badges">
|
378
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
379
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
|
380
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
381
|
+
</footer>
|
382
|
+
|