initial commit
This commit is contained in:
15
pkg/cache/cache.go
vendored
Normal file
15
pkg/cache/cache.go
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
package cache
|
||||
|
||||
import "io"
|
||||
|
||||
type Cache interface {
|
||||
Get(key string, writer io.Writer) error
|
||||
GetString(key string) (string, error)
|
||||
GetJSON(key string, value any) error
|
||||
|
||||
Set(key string, value io.Reader) error
|
||||
SetJSON(key string, value any) error
|
||||
SetString(key string, value string) error
|
||||
|
||||
Delete(key string) error
|
||||
}
|
Reference in New Issue
Block a user