github.com/angenalZZZ/gofunc@v0.0.0-20210507121333-48ff1be3917b/data/cache/store/interface.go (about) 1 package store 2 3 import "time" 4 5 // Interface is the interface for all available stores 6 type Interface interface { 7 Get(key string) (interface{}, error) 8 TTL(key string) (time.Duration, error) 9 Set(key string, value interface{}, options *Options) error 10 Delete(key string) error 11 Invalidate(options InvalidateOptions) error 12 Clear() error 13 GetType() string 14 }