improve local cache

Description

idempiere use hazelcast for distribute cache, but use internal code for local cache.

nowadays jcache is standardize api on java and implement by a lot provide.

hazelcast also have one implement for it.

so ít's better for idempiere to use that library. help standardize and easy configuration

https://docs.hazelcast.org/docs/3.11/manual/html-single/index.html#hazelcast-jcache

Environment

None

Activity

Carlos Ruiz 
December 14, 2018 at 11:43 AM

Hi , do you mean changing the implementation of CacheMgt and CCache to use a library?

From what I know the local implementation of cache comes from compiere times - most probably JCache was not there when JJ wrote this.
It sounds good if it can be made replaceable, maybe CCache can be moved as an implementation of JCache and then it can be replaced easily?

Hiep Lq 
December 7, 2018 at 5:00 AM

current expire implement per Cache bag object, isn't per item inside.
each time get/put a item to bag, expire time is check. so when a bag is reach expire time, a very new item inside bag can be expire also

Incomplete

Details

Assignee

Reporter

Priority

Created November 26, 2018 at 6:15 AM
Updated May 1, 2022 at 1:50 PM
Resolved March 8, 2022 at 3:32 PM