cache

package
v0.0.0-...-1454416 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemCache

type MemCache struct {
	db.DB
	// contains filtered or unexported fields
}

func NewMemCache

func NewMemCache(maxBytes int, db db.DB) *MemCache

func (*MemCache) GetCreditInfo

func (m *MemCache) GetCreditInfo(cxt context.Context, uid int) (*model.CreditInfo, error)

func (*MemCache) GetRank

func (m *MemCache) GetRank(cxt context.Context, uid int, field string) (int, error)

Jump to

Keyboard shortcuts

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