cache

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Memory

type Memory struct {
	Name      string
	TimeClear time.Duration
	// contains filtered or unexported fields
}

func (*Memory) Delete

func (t *Memory) Delete(key string) error

func (*Memory) Get

func (t *Memory) Get(key string) (any, error)

func (*Memory) Has

func (t *Memory) Has(key string) bool

func (*Memory) Init

func (t *Memory) Init(app interfaces.IService) error

func (*Memory) Set

func (t *Memory) Set(key string, args any, timeout time.Duration) error

func (*Memory) Stop

func (t *Memory) Stop() error

func (*Memory) String

func (t *Memory) String() string

type Mock

type Mock struct {
	Name string
}

func (*Mock) Delete

func (t *Mock) Delete(key string) error

func (*Mock) Get

func (t *Mock) Get(key string) (any, error)

func (*Mock) Has

func (t *Mock) Has(key string) bool

func (*Mock) Init

func (t *Mock) Init(app interfaces.IService) error

func (*Mock) Set

func (t *Mock) Set(key string, args any, timeout time.Duration) error

func (*Mock) Stop

func (t *Mock) Stop() error

func (*Mock) String

func (t *Mock) String() string

type TimeHeap

type TimeHeap []*TimeHeapItem

func (*TimeHeap) Len

func (t *TimeHeap) Len() int

func (*TimeHeap) Less

func (t *TimeHeap) Less(i, j int) bool

func (*TimeHeap) Pop

func (t *TimeHeap) Pop() any

func (*TimeHeap) Push

func (t *TimeHeap) Push(x any)

func (*TimeHeap) Swap

func (t *TimeHeap) Swap(i, j int)

func (*TimeHeap) Top

func (t *TimeHeap) Top() any

type TimeHeapItem

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

Jump to

Keyboard shortcuts

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