Spring 4 provides seamless JCache integration. In this example, I am using EhCache as JCache specification provider.
JCache is JSR 107 specification that provides annotations support such as
Continue reading “Spring JCache support”
The terms “buffer” and “cache” tend to be used interchangeably; note however they represent different things. A buffer is used traditionally as an intermediate temporary store for data between a fast and a slow entity. As one party would have to wait for the other affecting performance, the buffer alleviates this by allowing entire blocks of data to move at once rather then in small chunks. The data is written and read only once from the buffer. Furthermore, the buffers are visible to at least one party which is aware of it.
A cache on the other hand by definition is hidden and neither party is aware that caching occurs.It as well improves performance but does that by allowing the same data to be read multiple times in a fast fashion. Continue reading “Ehcache implementation using Spring framework”