Caching using Java, a Simple Tutorial

Last updated: 2025-09-14

Steps:

  1. Create Maven project with the following pom.xml:

Unresolved include directive in modules/6.x.x/pages/frameworks/jk-framework/jk-framework-core/java-util-cache-tutorial.adoc - include::inc/pom.xml[]

If you are using Eclipse, be sure to refresh your project (select your project→ right click→ Maven→ Update Project)

  1. Create Main class with the following contents:

Unresolved include directive in modules/6.x.x/pages/frameworks/jk-framework/jk-framework-core/java-util-cache-tutorial.adoc - include::inc/src/main/java/com/app/cache/JKCacheExample.java[]

Thats it, now run your App class, and you should see something line this:

cache

Full example source-code can be found at https://github.com/smartapi-com/j-framework-util