cache

package
v0.0.0-...-e865ecf Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const ListSize = 1200000

Variables

This section is empty.

Functions

This section is empty.

Types

type LruCache

type LruCache struct {
	// contains filtered or unexported fields
}

func NewLruCache

func NewLruCache() *LruCache

func (*LruCache) AddBridgeRecords

func (lc *LruCache) AddBridgeRecords(key string, data *models.BridgeResponse)

func (*LruCache) AddL1ToL2List

func (lc *LruCache) AddL1ToL2List(key string, data *models.DepositsResponse)

func (*LruCache) AddL2ToL1List

func (lc *LruCache) AddL2ToL1List(key string, data *models.WithdrawsResponse)

func (*LruCache) AddStakingRecords

func (lc *LruCache) AddStakingRecords(key string, data *models.StakingResponse)

func (*LruCache) GetBridgeRecords

func (lc *LruCache) GetBridgeRecords(key string) (*models.BridgeResponse, error)

func (*LruCache) GetL1ToL2List

func (lc *LruCache) GetL1ToL2List(key string) (*models.DepositsResponse, error)

func (*LruCache) GetL2ToL1List

func (lc *LruCache) GetL2ToL1List(key string) (*models.WithdrawsResponse, error)

func (*LruCache) GetStakingRecords

func (lc *LruCache) GetStakingRecords(key string) (*models.StakingResponse, error)

Jump to

Keyboard shortcuts

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