gemfire-jruby 0.0.1
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/.document +5 -0
- data/.gitignore +23 -0
- data/LICENSE +20 -0
- data/README.rdoc +17 -0
- data/Rakefile +52 -0
- data/VERSION +1 -0
- data/doc/classes/ActiveSupport.html +111 -0
- data/doc/classes/ActiveSupport/Cache.html +111 -0
- data/doc/classes/ActiveSupport/Cache/GemFire.html +373 -0
- data/doc/classes/ActiveSupport/Cache/GemFire.src/M000001.html +18 -0
- data/doc/classes/ActiveSupport/Cache/GemFire.src/M000002.html +27 -0
- data/doc/classes/ActiveSupport/Cache/GemFire.src/M000003.html +22 -0
- data/doc/classes/ActiveSupport/Cache/GemFire.src/M000004.html +23 -0
- data/doc/classes/ActiveSupport/Cache/GemFire.src/M000005.html +22 -0
- data/doc/classes/ActiveSupport/Cache/GemFire.src/M000006.html +18 -0
- data/doc/classes/ActiveSupport/Cache/GemFire.src/M000007.html +19 -0
- data/doc/classes/ActiveSupport/Cache/GemFire.src/M000008.html +23 -0
- data/doc/classes/ActiveSupport/Cache/GemFire.src/M000009.html +18 -0
- data/doc/classes/ActiveSupport/Cache/GemFire.src/M000010.html +18 -0
- data/doc/classes/ActiveSupport/Cache/GemFire.src/M000011.html +18 -0
- data/doc/classes/ActiveSupport/Cache/GemFire/CacheException.html +111 -0
- data/doc/created.rid +1 -0
- data/doc/files/lib/gemfire-jruby_rb.html +115 -0
- data/doc/fr_class_index.html +30 -0
- data/doc/fr_file_index.html +27 -0
- data/doc/fr_method_index.html +37 -0
- data/doc/index.html +24 -0
- data/doc/rdoc-style.css +208 -0
- data/gemfire-jruby-demo/README +243 -0
- data/gemfire-jruby-demo/Rakefile +10 -0
- data/gemfire-jruby-demo/app/controllers/application_controller.rb +14 -0
- data/gemfire-jruby-demo/app/helpers/application_helper.rb +3 -0
- data/gemfire-jruby-demo/cache.xml +8 -0
- data/gemfire-jruby-demo/config/boot.rb +110 -0
- data/gemfire-jruby-demo/config/database.yml +22 -0
- data/gemfire-jruby-demo/config/environment.rb +42 -0
- data/gemfire-jruby-demo/config/environments/development.rb +17 -0
- data/gemfire-jruby-demo/config/environments/production.rb +28 -0
- data/gemfire-jruby-demo/config/environments/test.rb +28 -0
- data/gemfire-jruby-demo/config/initializers/backtrace_silencers.rb +7 -0
- data/gemfire-jruby-demo/config/initializers/inflections.rb +10 -0
- data/gemfire-jruby-demo/config/initializers/mime_types.rb +5 -0
- data/gemfire-jruby-demo/config/initializers/new_rails_defaults.rb +21 -0
- data/gemfire-jruby-demo/config/initializers/session_store.rb +19 -0
- data/gemfire-jruby-demo/config/locales/en.yml +5 -0
- data/gemfire-jruby-demo/config/routes.rb +43 -0
- data/gemfire-jruby-demo/db/seeds.rb +7 -0
- data/gemfire-jruby-demo/doc/README_FOR_APP +2 -0
- data/gemfire-jruby-demo/log/development.log +24 -0
- data/gemfire-jruby-demo/log/production.log +0 -0
- data/gemfire-jruby-demo/log/server.log +0 -0
- data/gemfire-jruby-demo/log/test.log +0 -0
- data/gemfire-jruby-demo/public/404.html +30 -0
- data/gemfire-jruby-demo/public/422.html +30 -0
- data/gemfire-jruby-demo/public/500.html +30 -0
- data/gemfire-jruby-demo/public/favicon.ico +0 -0
- data/gemfire-jruby-demo/public/images/rails.png +0 -0
- data/gemfire-jruby-demo/public/index.html +275 -0
- data/gemfire-jruby-demo/public/javascripts/application.js +2 -0
- data/gemfire-jruby-demo/public/javascripts/controls.js +963 -0
- data/gemfire-jruby-demo/public/javascripts/dragdrop.js +973 -0
- data/gemfire-jruby-demo/public/javascripts/effects.js +1128 -0
- data/gemfire-jruby-demo/public/javascripts/prototype.js +4320 -0
- data/gemfire-jruby-demo/public/robots.txt +5 -0
- data/gemfire-jruby-demo/script/about +4 -0
- data/gemfire-jruby-demo/script/console +3 -0
- data/gemfire-jruby-demo/script/dbconsole +3 -0
- data/gemfire-jruby-demo/script/destroy +3 -0
- data/gemfire-jruby-demo/script/generate +3 -0
- data/gemfire-jruby-demo/script/performance/benchmarker +3 -0
- data/gemfire-jruby-demo/script/performance/profiler +3 -0
- data/gemfire-jruby-demo/script/plugin +3 -0
- data/gemfire-jruby-demo/script/runner +3 -0
- data/gemfire-jruby-demo/script/server +3 -0
- data/gemfire-jruby-demo/test/performance/browsing_test.rb +9 -0
- data/gemfire-jruby-demo/test/test_helper.rb +38 -0
- data/gemfire-jruby.gemspec +125 -0
- data/lib/gemfire-jruby.rb +108 -0
- data/test/helper.rb +10 -0
- data/test/test_gemfire-jruby.rb +7 -0
- metadata +146 -0
data/.document
ADDED
data/.gitignore
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
## MAC OS
|
|
2
|
+
.DS_Store
|
|
3
|
+
|
|
4
|
+
## TEXTMATE
|
|
5
|
+
*.tmproj
|
|
6
|
+
tmtags
|
|
7
|
+
|
|
8
|
+
## EMACS
|
|
9
|
+
*~
|
|
10
|
+
\#*
|
|
11
|
+
.\#*
|
|
12
|
+
|
|
13
|
+
## VIM
|
|
14
|
+
*.swp
|
|
15
|
+
|
|
16
|
+
## PROJECT::GENERAL
|
|
17
|
+
coverage
|
|
18
|
+
rdoc
|
|
19
|
+
pkg
|
|
20
|
+
|
|
21
|
+
## PROJECT::SPECIFIC
|
|
22
|
+
gemfire-jruby-demo/log/development.log
|
|
23
|
+
gemfire-jruby-0.0.1.gem
|
data/LICENSE
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Copyright (c) 2009 amckean
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
4
|
+
a copy of this software and associated documentation files (the
|
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
9
|
+
the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be
|
|
12
|
+
included in all copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
= gemfire-jruby
|
|
2
|
+
|
|
3
|
+
Description goes here.
|
|
4
|
+
|
|
5
|
+
== Note on Patches/Pull Requests
|
|
6
|
+
|
|
7
|
+
* Fork the project.
|
|
8
|
+
* Make your feature addition or bug fix.
|
|
9
|
+
* Add tests for it. This is important so I don't break it in a
|
|
10
|
+
future version unintentionally.
|
|
11
|
+
* Commit, do not mess with rakefile, version, or history.
|
|
12
|
+
(if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
|
|
13
|
+
* Send me a pull request. Bonus points for topic branches.
|
|
14
|
+
|
|
15
|
+
== Copyright
|
|
16
|
+
|
|
17
|
+
Copyright (c) 2010 amckean. See LICENSE for details.
|
data/Rakefile
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
require 'rubygems'
|
|
2
|
+
require 'rake'
|
|
3
|
+
|
|
4
|
+
begin
|
|
5
|
+
require 'jeweler'
|
|
6
|
+
Jeweler::Tasks.new do |gem|
|
|
7
|
+
gem.name = "gemfire-jruby"
|
|
8
|
+
gem.summary = %Q{"GemFire Rails Caching API for JRuby"}
|
|
9
|
+
gem.description = %Q{"Uses Memcached API"}
|
|
10
|
+
gem.email = "alan.mckean@gemstone.com"
|
|
11
|
+
gem.homepage = "http://github.com/amckean/gemfire-jruby"
|
|
12
|
+
gem.authors = ["Alan McKean"]
|
|
13
|
+
gem.add_dependency "activesupport", ">= 0"
|
|
14
|
+
end
|
|
15
|
+
Jeweler::GemcutterTasks.new
|
|
16
|
+
rescue LoadError
|
|
17
|
+
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
require 'rake/testtask'
|
|
21
|
+
Rake::TestTask.new(:test) do |test|
|
|
22
|
+
test.libs << 'lib' << 'test'
|
|
23
|
+
test.pattern = 'test/**/test_*.rb'
|
|
24
|
+
test.verbose = true
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
begin
|
|
28
|
+
require 'rcov/rcovtask'
|
|
29
|
+
Rcov::RcovTask.new do |test|
|
|
30
|
+
test.libs << 'test'
|
|
31
|
+
test.pattern = 'test/**/test_*.rb'
|
|
32
|
+
test.verbose = true
|
|
33
|
+
end
|
|
34
|
+
rescue LoadError
|
|
35
|
+
task :rcov do
|
|
36
|
+
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
task :test => :check_dependencies
|
|
41
|
+
|
|
42
|
+
task :default => :test
|
|
43
|
+
|
|
44
|
+
require 'rake/rdoctask'
|
|
45
|
+
Rake::RDocTask.new do |rdoc|
|
|
46
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
|
47
|
+
|
|
48
|
+
rdoc.rdoc_dir = 'rdoc'
|
|
49
|
+
rdoc.title = "gemfire-jruby #{version}"
|
|
50
|
+
rdoc.rdoc_files.include('README*')
|
|
51
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
|
52
|
+
end
|
data/VERSION
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.0.1
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
7
|
+
<head>
|
|
8
|
+
<title>Module: ActiveSupport</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
|
11
|
+
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
|
12
|
+
<script type="text/javascript">
|
|
13
|
+
// <![CDATA[
|
|
14
|
+
|
|
15
|
+
function popupCode( url ) {
|
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function toggleCode( id ) {
|
|
20
|
+
if ( document.getElementById )
|
|
21
|
+
elem = document.getElementById( id );
|
|
22
|
+
else if ( document.all )
|
|
23
|
+
elem = eval( "document.all." + id );
|
|
24
|
+
else
|
|
25
|
+
return false;
|
|
26
|
+
|
|
27
|
+
elemStyle = elem.style;
|
|
28
|
+
|
|
29
|
+
if ( elemStyle.display != "block" ) {
|
|
30
|
+
elemStyle.display = "block"
|
|
31
|
+
} else {
|
|
32
|
+
elemStyle.display = "none"
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// Make codeblocks hidden by default
|
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
|
40
|
+
|
|
41
|
+
// ]]>
|
|
42
|
+
</script>
|
|
43
|
+
|
|
44
|
+
</head>
|
|
45
|
+
<body>
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
<div id="classHeader">
|
|
50
|
+
<table class="header-table">
|
|
51
|
+
<tr class="top-aligned-row">
|
|
52
|
+
<td><strong>Module</strong></td>
|
|
53
|
+
<td class="class-name-in-header">ActiveSupport</td>
|
|
54
|
+
</tr>
|
|
55
|
+
<tr class="top-aligned-row">
|
|
56
|
+
<td><strong>In:</strong></td>
|
|
57
|
+
<td>
|
|
58
|
+
<a href="../files/lib/gemfire-jruby_rb.html">
|
|
59
|
+
lib/gemfire-jruby.rb
|
|
60
|
+
</a>
|
|
61
|
+
<br />
|
|
62
|
+
</td>
|
|
63
|
+
</tr>
|
|
64
|
+
|
|
65
|
+
</table>
|
|
66
|
+
</div>
|
|
67
|
+
<!-- banner header -->
|
|
68
|
+
|
|
69
|
+
<div id="bodyContent">
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
<div id="contextContent">
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
</div>
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
</div>
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
<!-- if includes -->
|
|
84
|
+
|
|
85
|
+
<div id="section">
|
|
86
|
+
|
|
87
|
+
<div id="class-list">
|
|
88
|
+
<h3 class="section-bar">Classes and Modules</h3>
|
|
89
|
+
|
|
90
|
+
Module <a href="ActiveSupport/Cache.html" class="link">ActiveSupport::Cache</a><br />
|
|
91
|
+
|
|
92
|
+
</div>
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
<!-- if method_list -->
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
</div>
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
<div id="validator-badges">
|
|
107
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
108
|
+
</div>
|
|
109
|
+
|
|
110
|
+
</body>
|
|
111
|
+
</html>
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
7
|
+
<head>
|
|
8
|
+
<title>Module: ActiveSupport::Cache</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
|
11
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
12
|
+
<script type="text/javascript">
|
|
13
|
+
// <![CDATA[
|
|
14
|
+
|
|
15
|
+
function popupCode( url ) {
|
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function toggleCode( id ) {
|
|
20
|
+
if ( document.getElementById )
|
|
21
|
+
elem = document.getElementById( id );
|
|
22
|
+
else if ( document.all )
|
|
23
|
+
elem = eval( "document.all." + id );
|
|
24
|
+
else
|
|
25
|
+
return false;
|
|
26
|
+
|
|
27
|
+
elemStyle = elem.style;
|
|
28
|
+
|
|
29
|
+
if ( elemStyle.display != "block" ) {
|
|
30
|
+
elemStyle.display = "block"
|
|
31
|
+
} else {
|
|
32
|
+
elemStyle.display = "none"
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// Make codeblocks hidden by default
|
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
|
40
|
+
|
|
41
|
+
// ]]>
|
|
42
|
+
</script>
|
|
43
|
+
|
|
44
|
+
</head>
|
|
45
|
+
<body>
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
<div id="classHeader">
|
|
50
|
+
<table class="header-table">
|
|
51
|
+
<tr class="top-aligned-row">
|
|
52
|
+
<td><strong>Module</strong></td>
|
|
53
|
+
<td class="class-name-in-header">ActiveSupport::Cache</td>
|
|
54
|
+
</tr>
|
|
55
|
+
<tr class="top-aligned-row">
|
|
56
|
+
<td><strong>In:</strong></td>
|
|
57
|
+
<td>
|
|
58
|
+
<a href="../../files/lib/gemfire-jruby_rb.html">
|
|
59
|
+
lib/gemfire-jruby.rb
|
|
60
|
+
</a>
|
|
61
|
+
<br />
|
|
62
|
+
</td>
|
|
63
|
+
</tr>
|
|
64
|
+
|
|
65
|
+
</table>
|
|
66
|
+
</div>
|
|
67
|
+
<!-- banner header -->
|
|
68
|
+
|
|
69
|
+
<div id="bodyContent">
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
<div id="contextContent">
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
</div>
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
</div>
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
<!-- if includes -->
|
|
84
|
+
|
|
85
|
+
<div id="section">
|
|
86
|
+
|
|
87
|
+
<div id="class-list">
|
|
88
|
+
<h3 class="section-bar">Classes and Modules</h3>
|
|
89
|
+
|
|
90
|
+
Class <a href="Cache/GemFire.html" class="link">ActiveSupport::Cache::GemFire</a><br />
|
|
91
|
+
|
|
92
|
+
</div>
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
<!-- if method_list -->
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
</div>
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
<div id="validator-badges">
|
|
107
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
108
|
+
</div>
|
|
109
|
+
|
|
110
|
+
</body>
|
|
111
|
+
</html>
|
|
@@ -0,0 +1,373 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
7
|
+
<head>
|
|
8
|
+
<title>Class: ActiveSupport::Cache::GemFire</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
|
11
|
+
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
12
|
+
<script type="text/javascript">
|
|
13
|
+
// <![CDATA[
|
|
14
|
+
|
|
15
|
+
function popupCode( url ) {
|
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function toggleCode( id ) {
|
|
20
|
+
if ( document.getElementById )
|
|
21
|
+
elem = document.getElementById( id );
|
|
22
|
+
else if ( document.all )
|
|
23
|
+
elem = eval( "document.all." + id );
|
|
24
|
+
else
|
|
25
|
+
return false;
|
|
26
|
+
|
|
27
|
+
elemStyle = elem.style;
|
|
28
|
+
|
|
29
|
+
if ( elemStyle.display != "block" ) {
|
|
30
|
+
elemStyle.display = "block"
|
|
31
|
+
} else {
|
|
32
|
+
elemStyle.display = "none"
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// Make codeblocks hidden by default
|
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
|
40
|
+
|
|
41
|
+
// ]]>
|
|
42
|
+
</script>
|
|
43
|
+
|
|
44
|
+
</head>
|
|
45
|
+
<body>
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
<div id="classHeader">
|
|
50
|
+
<table class="header-table">
|
|
51
|
+
<tr class="top-aligned-row">
|
|
52
|
+
<td><strong>Class</strong></td>
|
|
53
|
+
<td class="class-name-in-header">ActiveSupport::Cache::GemFire</td>
|
|
54
|
+
</tr>
|
|
55
|
+
<tr class="top-aligned-row">
|
|
56
|
+
<td><strong>In:</strong></td>
|
|
57
|
+
<td>
|
|
58
|
+
<a href="../../../files/lib/gemfire-jruby_rb.html">
|
|
59
|
+
lib/gemfire-jruby.rb
|
|
60
|
+
</a>
|
|
61
|
+
<br />
|
|
62
|
+
</td>
|
|
63
|
+
</tr>
|
|
64
|
+
|
|
65
|
+
<tr class="top-aligned-row">
|
|
66
|
+
<td><strong>Parent:</strong></td>
|
|
67
|
+
<td>
|
|
68
|
+
Store
|
|
69
|
+
</td>
|
|
70
|
+
</tr>
|
|
71
|
+
</table>
|
|
72
|
+
</div>
|
|
73
|
+
<!-- banner header -->
|
|
74
|
+
|
|
75
|
+
<div id="bodyContent">
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
<div id="contextContent">
|
|
80
|
+
|
|
81
|
+
<div id="description">
|
|
82
|
+
<p>
|
|
83
|
+
<a href="GemFire.html">ActiveSupport::Cache::GemFire</a> creates a
|
|
84
|
+
Singleton object that provides access to a <a
|
|
85
|
+
href="GemFire.html">GemFire</a> cache.
|
|
86
|
+
</p>
|
|
87
|
+
|
|
88
|
+
</div>
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
</div>
|
|
92
|
+
|
|
93
|
+
<div id="method-list">
|
|
94
|
+
<h3 class="section-bar">Methods</h3>
|
|
95
|
+
|
|
96
|
+
<div class="name-list">
|
|
97
|
+
<a href="#M000008">clear</a>
|
|
98
|
+
<a href="#M000010">decrement</a>
|
|
99
|
+
<a href="#M000005">delete</a>
|
|
100
|
+
<a href="#M000011">delete_matched</a>
|
|
101
|
+
<a href="#M000007">exist?</a>
|
|
102
|
+
<a href="#M000001">getInstance</a>
|
|
103
|
+
<a href="#M000009">increment</a>
|
|
104
|
+
<a href="#M000006">keys</a>
|
|
105
|
+
<a href="#M000002">new</a>
|
|
106
|
+
<a href="#M000003">read</a>
|
|
107
|
+
<a href="#M000004">write</a>
|
|
108
|
+
</div>
|
|
109
|
+
</div>
|
|
110
|
+
|
|
111
|
+
</div>
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
<!-- if includes -->
|
|
115
|
+
|
|
116
|
+
<div id="section">
|
|
117
|
+
|
|
118
|
+
<div id="class-list">
|
|
119
|
+
<h3 class="section-bar">Classes and Modules</h3>
|
|
120
|
+
|
|
121
|
+
Class <a href="GemFire/CacheException.html" class="link">ActiveSupport::Cache::GemFire::CacheException</a><br />
|
|
122
|
+
|
|
123
|
+
</div>
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
<div id="attribute-list">
|
|
129
|
+
<h3 class="section-bar">Attributes</h3>
|
|
130
|
+
|
|
131
|
+
<div class="name-list">
|
|
132
|
+
<table>
|
|
133
|
+
<tr class="top-aligned-row context-row">
|
|
134
|
+
<td class="context-item-name">instance</td>
|
|
135
|
+
<td class="context-item-value"> [RW] </td>
|
|
136
|
+
<td class="context-item-desc"></td>
|
|
137
|
+
</tr>
|
|
138
|
+
</table>
|
|
139
|
+
</div>
|
|
140
|
+
</div>
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
<!-- if method_list -->
|
|
145
|
+
<div id="methods">
|
|
146
|
+
<h3 class="section-bar">Public Class methods</h3>
|
|
147
|
+
|
|
148
|
+
<div id="method-M000001" class="method-detail">
|
|
149
|
+
<a name="M000001"></a>
|
|
150
|
+
|
|
151
|
+
<div class="method-heading">
|
|
152
|
+
<a href="GemFire.src/M000001.html" target="Code" class="method-signature"
|
|
153
|
+
onclick="popupCode('GemFire.src/M000001.html');return false;">
|
|
154
|
+
<span class="method-name">getInstance</span><span class="method-args">(hashOfGemFireProperties)</span>
|
|
155
|
+
</a>
|
|
156
|
+
</div>
|
|
157
|
+
|
|
158
|
+
<div class="method-description">
|
|
159
|
+
<p>
|
|
160
|
+
<a href="GemFire.html">GemFire</a> is a Singleton. <a
|
|
161
|
+
href="GemFire.html#M000002">new</a>() is hidden, so use <a
|
|
162
|
+
href="GemFire.html#M000001">getInstance</a>() to both create the <a
|
|
163
|
+
href="GemFire.html">GemFire</a> instance and to launch <a
|
|
164
|
+
href="GemFire.html">GemFire</a>.
|
|
165
|
+
</p>
|
|
166
|
+
<pre>
|
|
167
|
+
There is an optional Hash that you can use to override any GemFire properties'.
|
|
168
|
+
For example, GemFire.getInstance('locators' => 'localhost[10355]', 'mcast-port' => '0')
|
|
169
|
+
</pre>
|
|
170
|
+
<p>
|
|
171
|
+
Since it is a Singleton, successive calls to <a
|
|
172
|
+
href="GemFire.html#M000001">GemFire.getInstance</a>() will return the
|
|
173
|
+
single instance that was instantiated by the first call.
|
|
174
|
+
</p>
|
|
175
|
+
</div>
|
|
176
|
+
</div>
|
|
177
|
+
|
|
178
|
+
<div id="method-M000002" class="method-detail">
|
|
179
|
+
<a name="M000002"></a>
|
|
180
|
+
|
|
181
|
+
<div class="method-heading">
|
|
182
|
+
<a href="GemFire.src/M000002.html" target="Code" class="method-signature"
|
|
183
|
+
onclick="popupCode('GemFire.src/M000002.html');return false;">
|
|
184
|
+
<span class="method-name">new</span><span class="method-args">(hashOfGemFireProperties)</span>
|
|
185
|
+
</a>
|
|
186
|
+
</div>
|
|
187
|
+
|
|
188
|
+
<div class="method-description">
|
|
189
|
+
</div>
|
|
190
|
+
</div>
|
|
191
|
+
|
|
192
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
|
193
|
+
|
|
194
|
+
<div id="method-M000008" class="method-detail">
|
|
195
|
+
<a name="M000008"></a>
|
|
196
|
+
|
|
197
|
+
<div class="method-heading">
|
|
198
|
+
<a href="GemFire.src/M000008.html" target="Code" class="method-signature"
|
|
199
|
+
onclick="popupCode('GemFire.src/M000008.html');return false;">
|
|
200
|
+
<span class="method-name">clear</span><span class="method-args">()</span>
|
|
201
|
+
</a>
|
|
202
|
+
</div>
|
|
203
|
+
|
|
204
|
+
<div class="method-description">
|
|
205
|
+
<p>
|
|
206
|
+
Delete all entries (key=>value pairs) from the <a
|
|
207
|
+
href="GemFire.html">GemFire</a> cache. Returns a JRuby Hash.
|
|
208
|
+
</p>
|
|
209
|
+
</div>
|
|
210
|
+
</div>
|
|
211
|
+
|
|
212
|
+
<div id="method-M000010" class="method-detail">
|
|
213
|
+
<a name="M000010"></a>
|
|
214
|
+
|
|
215
|
+
<div class="method-heading">
|
|
216
|
+
<a href="GemFire.src/M000010.html" target="Code" class="method-signature"
|
|
217
|
+
onclick="popupCode('GemFire.src/M000010.html');return false;">
|
|
218
|
+
<span class="method-name">decrement</span><span class="method-args">(key)</span>
|
|
219
|
+
</a>
|
|
220
|
+
</div>
|
|
221
|
+
|
|
222
|
+
<div class="method-description">
|
|
223
|
+
<p>
|
|
224
|
+
Not implemented by <a href="GemFire.html">GemFire</a>. Raises an exception
|
|
225
|
+
when called.
|
|
226
|
+
</p>
|
|
227
|
+
</div>
|
|
228
|
+
</div>
|
|
229
|
+
|
|
230
|
+
<div id="method-M000005" class="method-detail">
|
|
231
|
+
<a name="M000005"></a>
|
|
232
|
+
|
|
233
|
+
<div class="method-heading">
|
|
234
|
+
<a href="GemFire.src/M000005.html" target="Code" class="method-signature"
|
|
235
|
+
onclick="popupCode('GemFire.src/M000005.html');return false;">
|
|
236
|
+
<span class="method-name">delete</span><span class="method-args">(key)</span>
|
|
237
|
+
</a>
|
|
238
|
+
</div>
|
|
239
|
+
|
|
240
|
+
<div class="method-description">
|
|
241
|
+
<p>
|
|
242
|
+
Delete the entry stored in the <a href="GemFire.html">GemFire</a> cache at
|
|
243
|
+
<em>key</em>. <em>key</em> can be any JRuby object. Returns the value that
|
|
244
|
+
was deleted.
|
|
245
|
+
</p>
|
|
246
|
+
</div>
|
|
247
|
+
</div>
|
|
248
|
+
|
|
249
|
+
<div id="method-M000011" class="method-detail">
|
|
250
|
+
<a name="M000011"></a>
|
|
251
|
+
|
|
252
|
+
<div class="method-heading">
|
|
253
|
+
<a href="GemFire.src/M000011.html" target="Code" class="method-signature"
|
|
254
|
+
onclick="popupCode('GemFire.src/M000011.html');return false;">
|
|
255
|
+
<span class="method-name">delete_matched</span><span class="method-args">(matcher)</span>
|
|
256
|
+
</a>
|
|
257
|
+
</div>
|
|
258
|
+
|
|
259
|
+
<div class="method-description">
|
|
260
|
+
<p>
|
|
261
|
+
Not implemented by <a href="GemFire.html">GemFire</a>. Raises an exception
|
|
262
|
+
when called.
|
|
263
|
+
</p>
|
|
264
|
+
</div>
|
|
265
|
+
</div>
|
|
266
|
+
|
|
267
|
+
<div id="method-M000007" class="method-detail">
|
|
268
|
+
<a name="M000007"></a>
|
|
269
|
+
|
|
270
|
+
<div class="method-heading">
|
|
271
|
+
<a href="GemFire.src/M000007.html" target="Code" class="method-signature"
|
|
272
|
+
onclick="popupCode('GemFire.src/M000007.html');return false;">
|
|
273
|
+
<span class="method-name">exist?</span><span class="method-args">(key)</span>
|
|
274
|
+
</a>
|
|
275
|
+
</div>
|
|
276
|
+
|
|
277
|
+
<div class="method-description">
|
|
278
|
+
<p>
|
|
279
|
+
Check if there is an entry accessible by <em>key</em> in the <a
|
|
280
|
+
href="GemFire.html">GemFire</a> cache. Returns a boolean.
|
|
281
|
+
</p>
|
|
282
|
+
</div>
|
|
283
|
+
</div>
|
|
284
|
+
|
|
285
|
+
<div id="method-M000009" class="method-detail">
|
|
286
|
+
<a name="M000009"></a>
|
|
287
|
+
|
|
288
|
+
<div class="method-heading">
|
|
289
|
+
<a href="GemFire.src/M000009.html" target="Code" class="method-signature"
|
|
290
|
+
onclick="popupCode('GemFire.src/M000009.html');return false;">
|
|
291
|
+
<span class="method-name">increment</span><span class="method-args">(key)</span>
|
|
292
|
+
</a>
|
|
293
|
+
</div>
|
|
294
|
+
|
|
295
|
+
<div class="method-description">
|
|
296
|
+
<p>
|
|
297
|
+
Not implemented by <a href="GemFire.html">GemFire</a>. Raises an exception
|
|
298
|
+
when called.
|
|
299
|
+
</p>
|
|
300
|
+
</div>
|
|
301
|
+
</div>
|
|
302
|
+
|
|
303
|
+
<div id="method-M000006" class="method-detail">
|
|
304
|
+
<a name="M000006"></a>
|
|
305
|
+
|
|
306
|
+
<div class="method-heading">
|
|
307
|
+
<a href="GemFire.src/M000006.html" target="Code" class="method-signature"
|
|
308
|
+
onclick="popupCode('GemFire.src/M000006.html');return false;">
|
|
309
|
+
<span class="method-name">keys</span><span class="method-args">()</span>
|
|
310
|
+
</a>
|
|
311
|
+
</div>
|
|
312
|
+
|
|
313
|
+
<div class="method-description">
|
|
314
|
+
<p>
|
|
315
|
+
Fetch all of the <a href="GemFire.html#M000006">keys</a> currently in the
|
|
316
|
+
<a href="GemFire.html">GemFire</a> cache. Returns a JRuby Array of JRuby
|
|
317
|
+
objects.
|
|
318
|
+
</p>
|
|
319
|
+
</div>
|
|
320
|
+
</div>
|
|
321
|
+
|
|
322
|
+
<div id="method-M000003" class="method-detail">
|
|
323
|
+
<a name="M000003"></a>
|
|
324
|
+
|
|
325
|
+
<div class="method-heading">
|
|
326
|
+
<a href="GemFire.src/M000003.html" target="Code" class="method-signature"
|
|
327
|
+
onclick="popupCode('GemFire.src/M000003.html');return false;">
|
|
328
|
+
<span class="method-name">read</span><span class="method-args">(key)</span>
|
|
329
|
+
</a>
|
|
330
|
+
</div>
|
|
331
|
+
|
|
332
|
+
<div class="method-description">
|
|
333
|
+
<p>
|
|
334
|
+
Read a value from the <a href="GemFire.html">GemFire</a> cache.
|
|
335
|
+
<em>key</em> can be any JRuby object. Returns the value stored at
|
|
336
|
+
<em>key</em>.
|
|
337
|
+
</p>
|
|
338
|
+
</div>
|
|
339
|
+
</div>
|
|
340
|
+
|
|
341
|
+
<div id="method-M000004" class="method-detail">
|
|
342
|
+
<a name="M000004"></a>
|
|
343
|
+
|
|
344
|
+
<div class="method-heading">
|
|
345
|
+
<a href="GemFire.src/M000004.html" target="Code" class="method-signature"
|
|
346
|
+
onclick="popupCode('GemFire.src/M000004.html');return false;">
|
|
347
|
+
<span class="method-name">write</span><span class="method-args">(key, value)</span>
|
|
348
|
+
</a>
|
|
349
|
+
</div>
|
|
350
|
+
|
|
351
|
+
<div class="method-description">
|
|
352
|
+
<p>
|
|
353
|
+
Write a value to the <a href="GemFire.html">GemFire</a> cache. <em>key</em>
|
|
354
|
+
is used to <a href="GemFire.html#M000003">read</a> the value from the cache
|
|
355
|
+
and can be any JRuby object. Returns the value that was stored at
|
|
356
|
+
<em>key</em>.
|
|
357
|
+
</p>
|
|
358
|
+
</div>
|
|
359
|
+
</div>
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
</div>
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
</div>
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
<div id="validator-badges">
|
|
369
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
370
|
+
</div>
|
|
371
|
+
|
|
372
|
+
</body>
|
|
373
|
+
</html>
|