Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Eh cache in Kaunas JUG
1. EhCache
To Cache Or Not To Cache?
Kaunas JUG
Saulius Tvarijonas · saulius.tvarijonas@gmail.com
2. Wiki
● Ehcache is a widely used open source Java distributed
cache for general purpose caching, Java EE and light-
weight containers
● Ehcache was originally developed by Greg Luck,
starting in 2003. In 2009, the project was purchased by
Terracotta
4. Will an Application Benefit from Caching?
● Speeding up CPU-bound Applications
● Speeding up I/O-bound Applications
● Increased Application Scalability
21. Web Console
● Real Time Statistics
● Live Configuration Updates
● Cache enable/disable/clear
● Charts
22. Test Storage Results
Type Total time
(Concurrent)HashMap 11ms
MemoryStore 39ms
Off-HeapStore 5800ms
DiskStore 11300ms
● Cache with 1k elements
● Element size 500 bytes
● Measuring getFromCache time (100k times)
23. EhCache 3.0
● Standard API JSR 107
● Generics, Java 8 ready
● Java 6 compatible
● Better configuration