Documentation ¶ Index ¶ type Cache type DirCache func NewDirCache(path string) *DirCache func (d *DirCache) Get(ctx context.Context, key string) ([]byte, error) func (d *DirCache) Set(ctx context.Context, key string, value []byte) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Cache ¶ type Cache interface { Set(ctx context.Context, key string, value []byte) error Get(ctx context.Context, ey string) ([]byte, error) } type DirCache ¶ type DirCache struct { // contains filtered or unexported fields } func NewDirCache ¶ func NewDirCache(path string) *DirCache func (*DirCache) Get ¶ func (d *DirCache) Get(ctx context.Context, key string) ([]byte, error) func (*DirCache) Set ¶ func (d *DirCache) Set(ctx context.Context, key string, value []byte) error Source Files ¶ View all Source files cache.go Click to show internal directories. Click to hide internal directories.