forked from jhouserizer/ehcache.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
151 lines (123 loc) · 6.3 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
<html>
<head>
<title>Ehcache - Caching for the JVM</title>
<link rel="stylesheet" href="css/default.css" type="text/css" />
<link rel="stylesheet" href="highlight/styles/idea.css">
<script src="highlight/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<link rel="shortcut icon" href="/img/favicon.ico">
<link rel="icon" type="image/x-icon" href="/img/favicon.ico">
</head>
<body>
<div id="menu">
<div class="container">
<ul>
<li id="logo"><em>ehcache</em></li>
<li><a href="/docs/user/3.0/">documentation</a></li>
<li><a href="https://github.com/ehcache/ehcache3/releases">download</a></li>
<li><a href="https://groups.google.com/forum/#!forum/ehcache-users">mailing list</a></li>
<li><a href="https://github.com/ehcache/ehcache3/issues">bug tracking</a></li>
</ul>
</div>
</div>
<div id="intro">
<div class="container">
<h1>Java's Most Widely-Used Cache</h1>
Ehcache is an open source, standards-based cache for boosting performance, offloading your database, and simplifying scalability.
It's the most widely-used Java-based cache because it's robust, proven, and full-featured.
Ehcache scales from in-process, with one or more nodes, all the way to mixed in-process/out-of-process configurations with terabyte-sized caches.
<h2>Ehcache v3: API reboot & <code>javax.cache</code> driven</h2>
Ehcache is one of the most feature rich caching APIs out there.
Yet it's been growing organically, all founded on the very early API as designed pre-Java5.
We've learned a lot in the meantime and there have been compromises made along the way.
But "fixing" these isn't an easy task, often even impossible without breaking backward compatibility.
In the meantime, while some caching solutions took very different approaches on it all, the expert group on JSR-107, Terracotta included, put great efforts in trying to come up with a standard API.
We felt the new major version of the API should be based on the standardized API.
JSR-107 serves as the basis for the new API but Ehcache 3.0 extends the specification in many aspects.
<h2>Ehcache 3 : Milestone 2 reached - Moar features</h2>
Milestone 2 came with over 60 issues closed... including new features, such as:
<ul>
<li>Disk Persistence</li>
<li>Three-tiered Caching: heap, offheap & disk</li>
<li>Write-Behind</li>
<li>Better builder pattern support</li>
<li>...</li>
</ul>
"Official" builds of m2 are available on the project's GitHub <a href="https://github.com/ehcache/ehcache3/releases/tag/v3.0.0.m2">release page</a> or from Maven Central - see below.
</div>
</div>
<div id="start">
<div class="container">
<h1>Getting started</h1>
You can introducing caching to your Java application quiet easily with Ehcache. Wheter using its new poweful 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 new Ehcache v3 is still in heavy developement, you can give it a test ride today! We've working hard on
bringing all the featureset from the previous releases to this new version. The core API is pretty much 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 getting it from Maven central:
<pre><code class="xml"> <dependency>
<groupId>org.ehcache</groupId>
<artifactId>ehcache</artifactId>
<version>3.0.0.m2</version>
</dependency> </code></pre>
<h3>Coding to the Ehcache 3 API</h3>
<pre><code class="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>Using the JSR-107 API</h2>
<h3>Downloading the jars</h3>
You'll need the Ehcache distribution like mentioned <a href="#jars">above</a>, you'll also require the actual JSR-107 API:
<pre><code class="xml"> <dependency>
<groupId>javax.cache</groupId>
<artifactId>cache-api</artifactId>
<version>1.0.0</version>
</dependency></code></pre>
<h2>Not quite ready yet?</h2>
Read the <a href="/docs/user/3.0">user documentation</a> for everything you've been wondering about the new API!
</div>
</div>
<div id="footer">
<div class="container">
<ul>
<li>
<h5>Ehcache</h5>
</li>
<li><a href="/docs/user/3.0/">User documentation</a></li>
<li><a href="https://github.com/ehcache/ehcache3/releases">Downloads</a></li>
<li><a href="http://twitter.com/ehcache">Twitter</a></li>
</ul>
<ul>
<li>
<h5>Community</h5>
</li>
<li><a href="https://groups.google.com/forum/#!forum/ehcache-users">User forum</a></li>
<li><a href="https://github.com/ehcache/ehcache3/wiki">Developer resources</a></li>
<li><a href="https://github.com/ehcache/ehcache3/issues">Submit a bug</a></li>
</ul>
<ul>
<li>
<h5>Company</h5>
</li>
<li><a href="http://www.terracotta.org">Terracotta</a></li>
<li><a href="http://www.softwareag.com">Software AG</a></li>
<li><a href="http://terracotta.org/services/training">Sign up for training</a></li>
</ul>
<hr />
<em class="copyleft">Ehcache is Open Source and freely available under the Apache 2 License</em>
<em class="copyright">© Terracotta, Inc., a wholly-owned subsidiary of Software AG USA, Inc. All rights reserved.</em>
</div>
</div>
</body>
</html>