forked from ehcache/ehcache.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
386 lines (277 loc) · 15.4 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<link rel="shortcut icon" type="image/x-icon" href="/images/favicon.ico">
<link rel="icon" type="image/x-icon" href="/images/favicon.ico">
<title>Ehcache</title>
<meta name="description" content="Java's most widely used cache.">
<link rel="canonical" href="http://www.ehcache.org/">
<link rel="alternate" type="application/rss+xml" title="Ehcache" href="http://www.ehcache.org/feed.xml" />
<!-- Fonts -->
<link href='http://fonts.googleapis.com/css?family=Lato:300,400,300italic,400italic' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>
<!-- Global CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootswatch/3.3.5/spacelab/bootstrap.min.css">
<!--
<link rel="stylesheet" href="/plugins/highlight/styles/idea.css">
<script src="/plugins/highlight/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
-->
<script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"></script>
<script src="https://cdn.rawgit.com/google/code-prettify/master/loader/prettify.css"></script>
<link rel="stylesheet" href="/css/main.css">
<!--
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prettify/r298/prettify.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/prettify/r298/prettify.min.js"></script>
<script>document.addEventListener('DOMContentLoaded', prettyPrint)</script>
-->
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<!-- Fixed navbar -->
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="site-title" href="/"><img src="/images/ehcache.png"/></a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li id="ehc_mnu_about"><a href="/about/"><i class="fa fa-info-circle"></i> About</a></li>
<li id="ehc_mnu_docs"><a href="/documentation/"><i class="fa fa-book"></i> Docs</a></li>
<li id="ehc_mnu_download"><a href="/downloads/"><i class="fa fa-download"></i> Download</a></li>
<li id="ehc_mnu_community" class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><i class="fa fa-users"></i> Community <span class="caret"></span></a>
<ul class="dropdown-menu">
<li class="dropdown-header">We Love Contributors</li>
<li><a href="/community/"><i class="fa fa-code"></i> Contributing</a></li>
<li role="separator" class="divider"></li>
<li class="dropdown-header">Forums</li>
<li><a href="https://groups.google.com/forum/#!forum/ehcache-users" target="_blank"><i class="fa fa-commenting"></i> Users' Forum</a></li>
<li><a href="https://groups.google.com/forum/#!forum/ehcache-dev" target="_blank"><i class="fa fa-commenting"></i> Developers' Forum</a></li>
<li role="separator" class="divider"></li>
<li class="dropdown-header">Source Code</li>
<li><a href="https://github.com/ehcache/ehcache3"><i class="fa fa-github"></i> GitHub (Ehcache 3)</a></li>
<li><a href="http://svn.terracotta.org/svn/ehcache/trunk"><i class="fa fa-code-fork"></i> SVN (Ehcache 2)</a></li>
<li role="separator" class="divider"></li>
<li class="dropdown-header">Bug Tracking</li>
<li><a href="https://github.com/ehcache/ehcache3/issues"><i class="fa fa-bug"></i> GitHub (Ehcache 3)</a></li>
<li><a href="https://jira.terracotta.org/jira/browse/EHC"><i class="fa fa-bug"></i> Jira (Ehcache 2)</a></li>
</ul>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li id="ehc_mnu_events"><a href="/events"><i class="fa fa-calendar"></i> News & Events</a></li>
<li><a href="http://blog.terracotta.org"><i class="fa fa-rss-square"></i> Blog</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</nav>
<br/>
<br/>
<br/>
<div id="banner" class="jumbotron breaker">
<div class="container banner breaker">
<img src="/images/Ehcache_Logo.png">
<h1>JAVA’S MOST WIDELY-USED CACHE</h1>
</div>
<div style="text-align: center; margin-top: 20px;">
<a href="/downloads/"><button type="button" class="btn btn-lg btn-success"><i class="fa fa-download"></i> Downloads</button></a>
<span> </span>
<a href="/documentation/"><button type="button" class="btn btn-lg btn-primary"><i class="fa fa-book"></i> Documentation</button></a>
<span> </span>
<a href="https://github.com/ehcache"><button type="button" class="btn btn-lg btn-default"><i class="fa fa-github"></i> GitHub Project</button></a>
</div>
</div>
<div id="intro" class="jumbotron breaker">
<div class="container">
<p>Ehcache is an open source, standards-based cache that boosts performance, offloads your database, and simplifies scalability. It's the most widely-used Java-based cache because it's robust, proven, full-featured, and integrates with other popular libraries and frameworks. Ehcache scales from in-process caching, all the way to mixed in-process/out-of-process deployments with terabyte-sized caches.</p>
<hr/>
<h2>Ehcache 3 : Milestone 4 reached - Even more features</h2>
Milestone 4 came with over 30 issues closed and includes new features, such as:
<ul>
<li>Simplified and reworked write-behind implementation,</li>
<li>OSGi readiness,</li>
<li>Ability to pass instances of CacheLoaderWriter, Serializer and Copier when configuring a Cache,</li>
<li><a href="https://github.com/ehcache/ehcache3/issues?q=milestone%3A%22Milestone+4%22">See all closed issues</a></li>
</ul>
"Official" builds of m4 are available on the project's GitHub <a href="https://github.com/ehcache/ehcache3/releases/tag/v3.0.0.m4">release page</a> or from Maven Central - see below.
</div>
</div>
<div id="start" class="jumbotron breaker">
<div class="container">
<div id="content">
<ul id="startguide-tabs" class="nav nav-tabs" data-tabs="tabs">
<li class="active"><a href="#ehc3" data-toggle="tab"><b class="sgtab">Ehcache 3 Quick Start</b></a></li>
<li><a href="#ehc2" data-toggle="tab"><b class="sgtab">Ehcache 2.x Quick Start</b></a></li>
</ul>
<div id="startguide-tab-content" class="tab-content">
<div class="tab-pane active" id="ehc3">
<h1>Getting started with Ehcache 3</h1>
You can introduce caching to your Java application quite easily with Ehcache, either using its new, powerful API
or using the <code>javax.cache</code> API as defined in the JSR-107 specification.
<h2>Using the core Ehcache v3 API</h2>
While Ehcache 3.0 is still in development, you can give it a serious test ride today! We're working hard on
bringing all the featureset from the previous releases to this new version. However the core API is very
solid already and should give you a feel for what's coming...
<h3><a name="jars"></a>Downloading the jars</h3>
You can download the jar directly from <a href="https://github.com/ehcache/ehcache3/releases">github</a> or get it from Maven Central:
<pre class="prettyprint highlight"><code class="language-xml" data-lang="xml"> <dependency>
<groupId>org.ehcache</groupId>
<artifactId>ehcache</artifactId>
<version>3.0.0.m4</version>
</dependency> </code></pre>
<h3>Coding to the Ehcache 3 API</h3>
<pre class="prettyprint highlight"><code class="language-java" data-lang="java">
CacheManager cacheManager = CacheManagerBuilder.newCacheManagerBuilder()
.withCache("preConfigured",
CacheConfigurationBuilder.newCacheConfigurationBuilder().buildConfig(Long.class, String.class))
.build(true);
Cache<Long, String> preConfigured
= cacheManager.getCache("preConfigured", Long.class, String.class);
Cache<Long, String> myCache = cacheManager.createCache("myCache",
CacheConfigurationBuilder.newCacheConfigurationBuilder().buildConfig(Long.class, String.class));
myCache.put(1L, "da one!");
String value = myCache.get(1L);
cacheManager.close();
</code></pre>
<h2 id="using_jsr107_api">Using the JSR-107 API</h2>
<h3>Downloading the jars</h3>
You'll need the Ehcache distribution as mentioned <a href="#jars">above</a>, you'll also require the actual JSR-107 API:
<pre class="prettyprint highlight"><code class="language-xml" data-lang="xml"> <dependency>
<groupId>javax.cache</groupId>
<artifactId>cache-api</artifactId>
<version>1.0.0</version>
</dependency></code></pre>
You will also need an extra jar which provides to Ehcache the management capabilities required by JSR-107:
<pre class="prettyprint highlight"><code class="language-xml" data-lang="xml"> <dependency>
<groupId>org.terracotta</groupId>
<artifactId>management-model</artifactId>
<version>2.0.0</version>
</dependency></code></pre>
<h2>Not quite ready yet?</h2>
Read the <a href="/documentation/3.0">user documentation</a> for everything you've been wondering about the new API!
</div>
<div class="tab-pane" id="ehc2">
<h1>Getting started with Ehcache 2</h1>
You can introduce caching to your Java application quiet easily with Ehcache 2.
<h2>Using the core Ehcache v2 API</h2>
<h3><a name="jars"></a>Downloading the jars</h3>
You can download the jar directly from <a href="http://ehcache.org/downloads">ehcache.org</a> or get it from Maven Central:
<pre class="prettyprint highlight"><code class="language-xml" data-lang="xml"> <dependency>
<groupId>net.sf.ehcache</groupId>
<artifactId>ehcache</artifactId>
<version>2.10.0</version>
</dependency> </code></pre>
<h3>Coding to the Ehcache 2 API</h3>
<pre class="prettyprint highlight"><code class="language-java" data-lang="java">
// Create a cache manager
final CacheManager cacheManager = new CacheManager();
// create the cache called "hello-world"
final Cache cache = cacheManager.getCache("hello-world");
// create a key to map the data to
final String key = "greeting";
// Create a data element
final Element putGreeting = new Element(key, "Hello, World!");
// Put the element into the data store
cache.put(putGreeting);
// Retrieve the data element
final Element getGreeting = cache.get(key);
// Print the value
System.out.println(getGreeting.getObjectValue());
</code></pre>
<h2>Not quite ready yet?</h2>
Read the <a href="generated/2.10.0/html/ehc-all/">user documentation</a> for everything you've ever wondered about the Ehcache 2 API!
</div>
</div>
</div>
<script type="text/javascript">
jQuery(document).ready(function ($) {
$('#startguide-tabs').tab();
});
</script>
</div>
<br/>
<footer class="site-footer">
<div class="container">
<div class="footer-col-wrapper">
<div class="footer-col footer-col-1">
Related Projects:<br/>
<a href="http://www.terracotta.org"><img src="/images/Terracotta_Logo_sm.png" style="max-height: 16px;"></a><br/><br/>
<a href="http://www.quartz-scheduler.org"><img src="/images/logo-quartz-scheduler.png" style="max-height: 20px;"></a>
<!--
<ul class="contact-list">
<li>Ehcache</li>
<li><a href="mailto:[email protected]">[email protected]</a></li>
</ul>
-->
</div>
<div class="footer-col footer-col-2">
<ul class="social-media-list">
<li>
<a href="https://github.com/ehcache">
<i class="fa fa-github"></i> GitHub
</a>
</li>
<li>
<a href="https://twitter.com/ehcache">
<i class="fa fa-twitter"></i> Twitter
</a>
</li>
<li>
<a href="http://www.facebook.com/Terracotta">
<i class="fa fa-facebook"></i> Facebook
</a>
</li>
<li>
<a href="http://www.linkedin.com/company/terracotta">
<i class="fa fa-linkedin"></i> LinkedIn
</a>
</li>
</ul>
</div>
<div class="footer-col footer-col-3">
<a href="/downloads/"><i class="fa fa-download"></i> Download Now</a>
<br/>
<a href="/documentation/"><i class="fa fa-book"></i> Documentation</a>
<br/>
<a href="/community/"><i class="fa fa-users"></i> Join the Community</a>
</div>
</div>
<div class="container-fluid">
<hr/>
<em class="copyleft">Ehcache is Open Source and freely available under the Apache 2 License</em>
<br/>
<em class="copyright">© Terracotta, Inc., a wholly-owned subsidiary of Software AG USA, Inc. All rights reserved.</em>
</div>
</div>
</footer>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="https://maxcdn.bootstrapcdn.com/js/ie10-viewport-bug-workaround.js"></script>
<!-- <script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/jquery-scrollTo/2.1.0/jquery.scrollTo.min.js"/> -->
<script type="text/javascript">
$('#').addClass("active");
$('#').addClass("active");
</script>
</body>
</html>