dms: bitbucket.org/anacrolix/dms/cache Index | Files

package cache

import "bitbucket.org/anacrolix/dms/cache"

Index

type Cache

type Cache struct {
    sync.Mutex
    // contains filtered or unexported fields
}

func New

func New() *Cache

func (*Cache) Get

func (me *Cache) Get(key Key, stamp Stamp, genfn GenFunc) (data Data, err error)

type Data

type Data interface{}

type GenFunc

type GenFunc func() (Data, Stamp, error)

type Key

type Key interface{}

type Stamp

type Stamp interface{}

Files

cache.go

Package cache imports 1 packages (graph) and is imported by 1 packages. Updated 2013-05-29. Refresh.