Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) AddOrUpdate ¶
func (cache *Cache) AddOrUpdate(key, value string, signature [8]byte, expireSec int64, keepaliveSec int64, keepaliveRetry int, retryDelaySec int64, callback KeepaliveCallback) (*KeepaliveTask, error)
AddOrUpdate
@Description: 添加或更新 @receiver cache @param key @param value @param signature 签名 @param expireSec 过期时间 @param keepaliveSec 保活间隔时间 @param keepaliveRetry 保活失败重试次数 @param retryDelaySec 保活失败重试延迟 @param callback 保活结果回调 @return *KeepaliveTask 保活任务对象,可以通过该对象取消 @return error
type KeepaliveCallback ¶
type KeepaliveTask ¶
type KeepaliveTask struct {
// contains filtered or unexported fields
}
func (*KeepaliveTask) Cancel ¶
func (task *KeepaliveTask) Cancel()
Click to show internal directories.
Click to hide internal directories.