If I have a table which is used for the purpose of configuration. For example, if I provide an email service, we must have some information which does not change frequently (ex. smtp, port).
In this case, we hope email service can retrieve data from cache instead of accessing database, except it had been changed.
1. create a Cache config class to enable caching.
2. Enable caching behavior for a method
3. When update com_config table (including create, update, delete), evict cache content so that fresh values can be loaded into the cache again