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

Switching to an LRU cache #144

Closed THLO closed 1 year ago

THLO commented 1 year ago

This PR replaces the current time-based, custom cache with a standard LRU cache to retain exchange rates longer.

The cache will be made persistent across updates in a follow-up PR.