新增系统设置接口

This commit is contained in:
wxb committed 2020-08-07 10:22:52 +08:00
commit 389d2970c0
150 files changed
+21555

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
package cache
import (
"time"
)
type Adapter interface {
Connect()
Get(key string) (string, error)
Set(key string, val interface{}, expire int) error
Del(key string) error
HashGet(hk, key string) (string, error)
HashDel(hk, key string) error
Increase(key string) error
Expire(key string, dur time.Duration) error
SetQueue(name string, message Message) error
GetQueue(name string, f func(message Message) error)
}
type Message interface {
SetID(string)
SetStream(string)
SetValue(map[string]interface{})
GetID() string
GetStream() string
GetValue() map[string]interface{}
}