mirror of
https://github.com/weloe/token-go.git
synced 2025-09-27 03:46:01 +08:00
12 lines
426 B
Go
12 lines
426 B
Go
package persist
|
|
|
|
// UpdatableWatcher called when data updated
|
|
type UpdatableWatcher interface {
|
|
UpdateForSetStr(key string, value string, timeout int64) error
|
|
UpdateForUpdateStr(key string, value string) error
|
|
UpdateForSet(key string, value interface{}, timeout int64) error
|
|
UpdateForUpdate(key string, value interface{}) error
|
|
UpdateForDelete(key string) error
|
|
UpdateForUpdateTimeout(key string, timeout int64) error
|
|
}
|