cache

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 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 Cache

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

map string stored file's uuid, which is stored in filetree and datanode.

func NewCache

func NewCache() *Cache

create a new cache

func (*Cache) Delete added in v0.3.0

func (c *Cache) Delete(filekey string)

Delete such filekey in map.

func (*Cache) Get

func (c *Cache) Get(filekey string) []string

Get which datanodes stored this filekey.

func (*Cache) Put

func (c *Cache) Put(filekey, address string)

Put address to the filekey.

Jump to

Keyboard shortcuts

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