feat: cache resized images

This commit is contained in:
Oleg Lobanov
2020-07-27 19:01:02 +02:00
parent f2f914221c
commit 95bc92955f
7 changed files with 248 additions and 15 deletions

11
diskcache/cache.go Normal file
View File

@@ -0,0 +1,11 @@
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
}