cache

package
v0.0.129 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2023 License: MIT Imports: 2 Imported by: 0

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

func NewAPICacheService() (Service, error)

NewAPICacheService creates a new api response data service.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL