stacks-network / sbtc-bridge-api

GNU Affero General Public License v3.0
6 stars 4 forks source link

Simple internal cache strategy for stateless info #83

Closed radicleart closed 1 year ago

radicleart commented 1 year ago

Description

PR creates a simple cache for a couple of stateless endpoints which provide the UI with initialisation data.

Example: /ui-init - provides sbtc contract data, info about exchange rates and fee estimates return a cached object

Scheduled job initUiCacheJob runs every three minutes and refreshes the cached object