User: Password:
   Keep me logged in.
Register  |  I forgot my password

Login  |  Register

Efficient Java Tools  - Listing Details
Statisticsw
  • Active Links: 58
  • Pending Links: 6
  • Todays Links: 0
  • Active Articles: 6
  • Pending Articles: 0
  • Todays Articles: 0
  • Total Categories: 33
  • Sub Categories: 20

ID:24
Title:cache4j
Pagerank:3
Short Description:
Listing Thumbnail

Cache4j is a cache for Java objects with a simple API and fast implementation. It features in-memory caching, a design for a multi-threaded environment, both synchronized and blocking implementations, a choice of eviction algorithms (LFU, LRU, FIFO), and the choice of either hard or soft references for object storage.

Description:

Cache4j features are:

  • Two implementation: synchronized, blocking.
  • In memory caching.
  • Eviction algorithm LFU, LRU, FIFO.
  • Design for multithread environment.
  • Available under the BSD license.
  • For store object can use strong or soft reference.

Cache4j performance tester package for testing java caching API.

Testing libraries

  • Jcs-1.2.7.0 : Turbine is a servlet based framework that allows experienced Java developers to quickly build web applications. Turbine allows us to use personalize the web sites and to use user logins to restrict access to parts of our application.
  • Cache4j_0.4
  • Oscache-2.2 : OSCache is a caching solution that includes a JSP tag library and set of classes to perform fine grained dynamic caching of JSP content, servlet responses or arbitrary objects. It provides both in memory and persistent on disk caches, and can allow your site to have graceful error tolerance
  • Ehcache-1.1 : Ehcache is a widely used java distributed cache for general purpose caching, Java EE and light-weight containers. It features memory and disk stores, replicate by copy and invalidate, listeners, cache loaders, cache extensions, cache exception handlers, a gzip caching servlet filter, RESTful & SOAP APIs, an implementation of JSR107 and much more. Ehcache is available under an Apache open source license and is actively developed, maintained and supported.

The tests for all caches:

  • Eviction algorithm : lru
  • Maximum objects count : 1000
  • Only memory objects
  • Time to live : infinitely

Data for testing: Randomized array of integer, array length 2000.Before testing cache fill from this array. In this package release next tests:

  • GetPutRemove - get object from cache + if object exists then delete + if object not exists then put in cache
  • GetPutRemoveT - get object from cache + if object exists then delete + if object not exists then put in cache + all this operation do 10 threads
  • Get - get object from cache

All tests perform 1000000 iteration. Cache4j supports JDK 1.4, 1.5 at runtime. If we want to add test then we will do the following things:

  • Implement interface net.sf.cache4j.perfomance.ITest
  • Write full class name in file \src\classes\net\sf\cache4j\perfomance\test.txt
  • Rebuild and run.

If we want test other caching API then we will do the following things :

  • Implement interface net.sf.cache4j.perfomance.ICache
  • Write full class name in file \src\classes\net\sf\cache4j\perfomance\cache.txt
  • Rebuild and run.
Category:Caching
Link Owner:alex
Date Added:November 07, 2009 09:07:57 PM
Number Hits:14
URL:    http://cache4j.sourceforge.net/
Ratings
You must be logged in to leave a rating.
Average rating: (0 votes)
Reviews

No Reviews Yet.


You must be logged in to leave a Comment.
 
Bookmark Me
Latest articles
Java Licensing with Agilis
Agilis provides secure, flexible Java protection solutions to software vendors worldwide. Capabilities include Internet-based product activation on connected and disconnected systems, intranet or Internet-based floating licensing, node-locked licensing, named-user licensing, feature configuration, custom licensing, server licensing, trial licensing, subscription licensing, usage-based licensing, licensing via resellers or OEMs, revocable licensing, license reporting, user compliance management, backoffice integration and more.

FireStorm/DAO: What is DAO Design Pattern?
The Data Access Object (DAO) design pattern provides a technique for separating object persistence and data access logic from any particular persistence mechanism or API. There are clear benefits to this approach from an architectural perspective.

CA Plex: what is it?
Today’s business climate requires organizations to have business applications that help improve customer service, reduce costs, increase profits, get to market faster and respond more rapidly to competitive challenges. CA Plex provides a single, integrated environment that enables both traditional and SOA-based solutions for development. CA Plex uses building blocks known as patterns to help your development teams create and maintain large-scale business applications for multiple platforms — Windows/.NET, Java/J2EE or the IBM Power Systems/IBM i.

JCover Code Coverage: important to understand!
Why is coverage analysis important? Coverage analysis has the following benefits: * We can determine if our test suite is adequate. A test suite that achieves 65% statement coverage is hardly adequate. We cannot be confident of our product's quality with this much coverage. This figure prompts us to enhance the test suite. * We can identify redundant test cases that are not useful either in increasing code coverage or in finding new bugs. Fine tuning a test suite has immense benefits during regression testing. * We can find out if there are regions of code that cannot be exercised at all, and hence can be cleaned up. We sometimes find that an application has code to support a feature that was discontinued in an earlier release of the product! Although test cases are normally generated from the specification, coverage analysis helps us in identifying areas that require further test focus.

Codign CoView: JUnit Test Generation
Unit testing and coding go together like peanut butter and jelly. Each good by themself, but together? Now that's a good sandwich! Now you can benefit by easily creating the right JUnit test the first time. CoView provides a solution that makes sense, is unique and completely understandable. And it only takes 3 steps to have a complete set of JUnit tests for each of your classes.