import "bitbucket.org/anacrolix/dms/cache"
type Cache struct {
sync.Mutex
// contains filtered or unexported fields
}
func New() *Cache
func (me *Cache) Get(key Key, stamp Stamp, genfn GenFunc) (data Data, err error)
type Data interface{}
type GenFunc func() (Data, Stamp, error)
type Key interface{}
type Stamp interface{}