Documentation
¶
Index ¶
Constants ¶
View Source
const (
PrefixKey = "__host"
)
PrefixKey ...
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdapterCache ¶
type AdapterCache interface {
String() string
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
Decrease(key string) error
Expire(key string, dur time.Duration) error
}
AdapterCache ...
type AdapterLocker ¶
type AdapterLocker interface {
String() string
Lock(key string, ttl int64, options *redislock.Options) (*redislock.Lock, error)
}
AdapterLocker ...
type AdapterQueue ¶
type AdapterQueue interface {
String() string
Append(message Messager) error
Register(name string, f ConsumerFunc)
Run()
Shutdown()
}
AdapterQueue ...
Click to show internal directories.
Click to hide internal directories.