Doom9527 / aristotle-webservice

👑 A web servide enables you to create knowledge graph.
https://aristotle-ws.com
16 stars 0 forks source link

Support caffeine caching #74

Open Doom9527 opened 1 week ago

Doom9527 commented 1 week ago

Changelog

Added

An optional Caffeine cache has been added.

Changed

Caffeine loading cache strategy has been added for getGraphByUuidAndFilterParams and kDegreeExpansion. Any other operations involving modifications or deletions of graphs will clear the cache in Caffeine. All tests have been refactored.

gitguardian[bot] commented 1 week ago

️✅ There are no secrets present in this pull request anymore.

If these secrets were true positive and are still valid, we highly recommend you to revoke them. Once a secret has been leaked into a git repository, you should consider it compromised, even if it was deleted immediately. Find here more information about risks.


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

Doom9527 commented 1 week ago

I couldn't find a way to reuse the test code, so the tests for the two scenarios with the cache switch actually involve duplicating the code.