Documentation ¶
Index ¶
- Variables
- func Connect(c Config) error
- func Get(key string) ([]byte, error)
- func GetJson(key string, j interface{}) error
- func Set(key string, val interface{}) error
- func SetEx(key string, val interface{}, timeout time.Duration) error
- func Watch(key string, logic func(event Event))
- func WatchPrefix(key string, logic func(event Event))
- type Config
- type Event
- type EventType
- type Mutex
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("key not found")
)
Functions ¶
func WatchPrefix ¶
Types ¶
type Mutex ¶
type Mutex struct {
// contains filtered or unexported fields
}
func (*Mutex) WhenLocked ¶
Click to show internal directories.
Click to hide internal directories.