cache

package
v0.0.0-...-ab171c9 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dir

type Dir struct {
	Path string
}

Dir stores cache in directory

func (*Dir) Create

func (s *Dir) Create(key string) proxy.CacheWriter

func (*Dir) Open

func (s *Dir) Open(key string) io.ReadCloser

func (*Dir) Purge

func (s *Dir) Purge()

func (*Dir) Range

func (s *Dir) Range(f proxy.CacheRanger)

func (*Dir) Remove

func (s *Dir) Remove(key string)

type Memory

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

Memory stores cache in memory

func (*Memory) Create

func (s *Memory) Create(key string) proxy.CacheWriter

func (*Memory) Open

func (s *Memory) Open(key string) io.ReadCloser

func (*Memory) Range

func (s *Memory) Range(f proxy.CacheRanger)

func (*Memory) Remove

func (s *Memory) Remove(key string)

Jump to

Keyboard shortcuts

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