diskcache

package
v0.0.0-...-1071b32 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2013 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package diskcache provided an implementation of httpcache.Cache that uses the diskv package to supplement an in-memory map with persistent storage

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 is an implementation of httpcache.Cache that supplements the in-memory map with persistent storage

func New

func New(basePath string) *Cache

New returns a new Cache that will store files in basePath

func (*Cache) Delete

func (c *Cache) Delete(key string)

func (*Cache) Get

func (c *Cache) Get(key string) (resp []byte, ok bool)

func (*Cache) Set

func (c *Cache) Set(key string, resp []byte)

Jump to

Keyboard shortcuts

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