- move Cacher from globals to api
- vendorPromotionID for CreatePromotion - LockPromotionSkus
This commit is contained in:
3
business/jxutils/cache/cache.go
vendored
3
business/jxutils/cache/cache.go
vendored
@@ -5,9 +5,10 @@ import (
|
||||
)
|
||||
|
||||
type ICacher interface {
|
||||
FlushAll() error
|
||||
FlushKeys(prefix string) error
|
||||
Set(key string, value interface{}, expiration time.Duration) error
|
||||
Del(key string) error
|
||||
Get(key string) interface{}
|
||||
GetAs(key string, ptr interface{}) error
|
||||
Keys(prefix string) ([]string, error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user