filecache

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2019 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
}

func New

func New(s int64) *Cache

func (*Cache) Add

func (c *Cache) Add(key, f, m string, b []byte) bool

func (*Cache) Get

func (c *Cache) Get(key string) *Entry

func (*Cache) Keys

func (c *Cache) Keys() []string

func (*Cache) Size

func (c *Cache) Size() int64

type Entry

type Entry struct {
	Filename, MimeType string
	Bytes              []byte
}

Jump to

Keyboard shortcuts

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