Documentation ¶
Overview ¶
Package cache caches data for the frontend
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface { // CacheResponse saves a response to cache . CacheResponse(string, any) error // GetCache attempts to get api response data from the cache. GetCache(string) any }
Service provides price data about tokens using either a cache or defillama cache keys sare always ${coin gecko id}_${timestamp}.
func NewAPICacheService ¶
NewAPICacheService creates a new api response data service.
Click to show internal directories.
Click to hide internal directories.