filebrowser/diskcache/cache.go

12 lines
255 B
Go
Raw Normal View History

2020-07-27 17:01:02 +00:00
package diskcache
import (
"context"
)
type Interface interface {
Store(ctx context.Context, key string, value []byte) error
Load(ctx context.Context, key string) (value []byte, exist bool, err error)
Delete(ctx context.Context, key string) error
}