dhis2-android-capture-app
dhis2-android-capture-app copied to clipboard
feat: [NO-MERGE] [ANDROSDK-1568] Add expirable cache
Description
Do not merge this PR. It is a prof of concept about the use of an internal cache for expensive operations, such as determining the attribute that should be used as profile picture for a particular event.
Solution description
Implement an expirable cache (it is copy/pasted from the SDK) to store an expensive computation result. This result is the same for a particular program as long as the metadata does not change.
Covered unit test cases
Where did you test this issue?
- [X] Smartphone Emulator
- [ ] Tablet Emulator
- [X] Smartphone
- [ ] Tablet
Which Android versions did you test this issue?
- [ ] 4.4
- [ ] 5.X - 6.X
- [ ] 7.X
- [ ] 8.X
- [X] 9.X - 10.X
- [ ] Other
Checklist
- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code