Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0048873Openbravo ERPA. Platformpublic2022-03-23 11:062022-04-20 09:36
cberner 
cberner 
normalminorhave not tried
closedfixed 
5
 
PR22Q2 
Core
No
0048873: A new API should be provided to allow creating Time Invalidated Caches
For a couple new developments a requirement is a Time Invalidated Cache in Java, to allow caching several key/values lazily in backend and expire them after a period of time.

A technical design is provided here: https://docs.google.com/document/d/1t5dRZbudoNyd1KxLibBp25TCdSRqMs43pC_0MQNpEjU/edit#heading=h.zd8s6v96k4ev [^]

A new library will be used in this part: https://github.com/ben-manes/caffeine [^]

Wiki page explaining how it works is provided here: http://wiki.openbravo.com/wiki/Time_Invalidated_Cache [^]
-
No tags attached.
related to feature request 0053976 closed caristu Openbravo ERP Support executing actions when a TimeInvalidatedCache entry is invalidated 
blocks defect 0047096 closed alostale Retail Modules posterminal: Remove guava usage in java code 
blocks feature request 0048579 closed caristu Openbravo ERP Push API 
Issue History
2022-03-23 11:06cbernerNew Issue
2022-03-23 11:06cbernerAssigned To => Triage Platform Base
2022-03-23 11:06cbernerModules => Core
2022-03-23 11:06cbernerTriggers an Emergency Pack => No
2022-03-23 11:09cbernerAssigned ToTriage Platform Base => cberner
2022-03-23 11:09cbernerStatusnew => scheduled
2022-03-23 11:33hgbotNote Added: 0135954
2022-04-04 13:16hgbotResolutionopen => fixed
2022-04-04 13:16hgbotStatusscheduled => closed
2022-04-04 13:16hgbotFixed in Version => PR22Q2
2022-04-04 13:16hgbotNote Added: 0136296
2022-04-04 13:16hgbotNote Added: 0136297
2022-04-04 13:26hgbotNote Added: 0136299
2022-04-07 10:01alostaleRelationship addedblocks 0047096
2022-04-20 09:36cbernerDescription Updatedbug_revision_view_page.php?rev_id=23932#r23932
2022-04-21 09:54alostaleRelationship addedblocks 0048579
2023-11-20 09:26caristuRelationship addedrelated to 0053976
2023-11-21 17:20caristuRelationship deletedrelated to 0053976
2023-11-22 10:22caristuRelationship addedrelated to 0053976

Notes
(0135954)
hgbot   
2022-03-23 11:33   
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/541 [^]
(0136296)
hgbot   
2022-04-04 13:16   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: 7beb47af292165b113c22a9f92c1cd6d70b77754
Author: Cristian Berner <cristian.berner@openbravo.com>
Date: 04-04-2022 13:15:36
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/7beb47af292165b113c22a9f92c1cd6d70b77754 [^]

Fixes FR-48873: Merge time-invalidated-cache

- Adds a new cache that can be time-invalidated. It is a new API that
internally uses caffeine cache library.

---
A lib/runtime/caffeine-3.0.6.jar
A src-test/src/org/openbravo/cache/FakeTicker.java
A src-test/src/org/openbravo/cache/TimeInvalidatedCacheTest.java
A src/org/openbravo/cache/TimeInvalidatedCache.java
A src/org/openbravo/cache/TimeInvalidatedCacheBuilder.java
M legal/Licensing.txt
M src-test/src/org/openbravo/test/StandaloneTestSuite.java
---
(0136297)
hgbot   
2022-04-04 13:16   
Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/541 [^]
(0136299)
hgbot   
2022-04-04 13:26   
Repository: https://gitlab.com/openbravo/tools/platform/dependencies [^]
Changeset: eb7fdd48b8e8bf282ee37c6eac0d944fbad59a9f
Author: Cristian Berner <cristian.berner@openbravo.com>
Date: 04-04-2022 13:26:35
URL: https://gitlab.com/openbravo/tools/platform/dependencies/-/commit/eb7fdd48b8e8bf282ee37c6eac0d944fbad59a9f [^]

Related to FR-48873: Include caffeine library, used for time-invalidated cache

---
M build.gradle
---