cache

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QuestionCache

type QuestionCache interface {
	GetTotal(ctx context.Context) (int64, error)
	SetTotal(ctx context.Context, total int64) error
}

func NewQuestionECache

func NewQuestionECache(ec ecache.Cache) QuestionCache

type QuestionECache

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

func (*QuestionECache) GetTotal

func (q *QuestionECache) GetTotal(ctx context.Context) (int64, error)

func (*QuestionECache) SetTotal

func (q *QuestionECache) SetTotal(ctx context.Context, total int64) error

Jump to

Keyboard shortcuts

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