actualCombat

package
v0.0.0-...-05962f3 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlgorithmType

type AlgorithmType interface {
	Delete(c *Cache)
}

type Cache

type Cache struct {
	AlgorithmType AlgorithmType
	// contains filtered or unexported fields
}

func InitCache

func InitCache(e AlgorithmType) *Cache

func (*Cache) Add

func (c *Cache) Add(key, value string)

func (*Cache) Delete

func (c *Cache) Delete()

func (*Cache) Get

func (c *Cache) Get(key string)

func (*Cache) SetAlgorithmType

func (c *Cache) SetAlgorithmType(e AlgorithmType)

type Fifo

type Fifo struct {
}

FIFO算法类型

func (*Fifo) Delete

func (l *Fifo) Delete(c *Cache)

删除缓存

type Lfu

type Lfu struct {
}

LFU算法类型

func (*Lfu) Delete

func (l *Lfu) Delete(c *Cache)

删除缓存

type Lru

type Lru struct {
}

LRU算法类型

func (*Lru) Delete

func (l *Lru) Delete(c *Cache)

删除缓存

Jump to

Keyboard shortcuts

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