Google Code Archive - Long-term storage for Google Code Project Hosting.
Declaring cache semantics directly in the Java source code puts the declarations much closer to the affected code. There is not much danger of undue coupling, because code that is meant to have its results cached is almost always deployed that way anyway.
The ease-of-use afforded by the use of the @Cacheable
annotation is best illustrated with an example, which is explained in the text that follows. Consider the following interface and class definition: ``` public interface WeatherDao {
Read full article from Google Code Archive - Long-term storage for Google Code Project Hosting.
No comments:
Post a Comment