oursky

package
v0.0.0-...-2a3c052 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2022 License: GPL-3.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 Cache

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

Cache declare cache struct

func NewCache

func NewCache(capacity int) *Cache

NewCache ...

func (*Cache) Get

func (c *Cache) Get(key int) int

Get serve caller to get value by key

func (*Cache) Put

func (c *Cache) Put(key int, val int, weight int)

Put serve caller to put key val into Cache

Jump to

Keyboard shortcuts

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