dfinity / exchange-rate-canister

The exchange rate canister (XRC) makes use of the HTTP requests feature to provide exchange rates as a service to the IC.
Apache License 2.0
37 stars 10 forks source link

Re-introducing a custom cache #155

Closed THLO closed 1 year ago

THLO commented 1 year ago

The generic LRU cache cannot handle the special case of having USDT as the base asset itself, which the custom cache did.

This PR re-introduces a custom cache. However, it is much simpler than before as it is just a wrapper around the LRU cache with a few additional checks.