Coconut Cache is an in-memory Java based caching framework licensed under the Apache License Version 2.0. Coconut Cache has no external dependencies and is very easy to embed into external applications. It is available as a single jar and requires a Java SE 5 JVM (or later) to run.
While it only supports in-memory caching currently. Disk-based storing and distributed caching will be available in future releases.
Check out the Quick Start Guide to get a quick and easy introduction to Coconut Cache. You only need to download a single jar and copy 10 lines of code to have a simple example up and running. Or look at the next section for individual functionality.
Cache Features and Services
Most of the functionality of Coconut Cache is grouped into separate service areas. All services can be configured both programmatically or via XML.
Here is an overview of the various services currently available in Coconut Cache.
Service |
Description |
|---|---|
It is possible to define event handlers that are called whenever different types of cache events arise. Such as when a cache is cleared or when entries are added, removed or updated. |
|
A lot of different replacement policies are available. Some of the more advanced policies evict data based on their individual size and the cost, for example, in terms of access time to retrieving the data again. |
|
ExceptionHandling |
Features a very flexible error handling mechanism supporting popular logging frameworks such as Log4j, java.util.logging and others. |
Policies can be defined for when data is no longer valid and must no longer be returned by the cache. |
|
Cache loaders are any an easy way to load data and content from external application or storage. Data can be transparently refreshed at certain intervals or according to custom policies. |
|
Local and remote (JMX) monitoring and management of cache instances and all of its services. |
|
Bind custom services to the life cycle of the cache. Making it easy to extend the functionality of a cache. |
|
Statistics |
Delivers detailed statistics about hit ratios, cache misses, access time, update time and more. |
Worker |
Controls the execution of asynchronous tasks in the cache. Allows for flexible threading policies. |
Cache Concepts
Area |
Description |
|---|---|
Cache Attributes |
Cache Attributes can be used to define individual properties of cached elements. For example, when is was last updated or how times it has been accessed. |
Cache Configuration |
See more details on how you can configure a cache both programmatically and via XML. |
Cache Lifecycle |
Describe the series of states that a cache and its services passes through from the initial creation to the their termination. |
Cache Entries |
Hmm, not much functionality besides holding onto attributes |
Other documentation
Area |
Description |
|---|---|
The test compatibility test suite used to test cache implementations against for making sure they are consistent with the specification. Contains around 600 tests. |
|
Performance Comparison |
See how Coconut Cache compares to other popular caching framework both performance and memory usage wise. |
Feature Comparison |
See how Coconut Cache compares to other popular caching framework in terms of features. |
Latest news
Could not access the content at the URL because it is not from an allowed source.
http://xircles.codehaus.org/news/rss
You may contact your site administrator and request that this URL be added to the list of allowed sources.
