Documentation ¶
Index ¶
- Variables
- func CAS(key string, oldValue []byte, newValue []byte) (bool, error)
- func D(key string) error
- func G(key string) ([]byte, error)
- func Lock() error
- func S(key string, value []byte) error
- func Unlock() error
- type GlobalStore
- func (gs *GlobalStore) CompareAndSwap(key string, oldValue []byte, newValue []byte) (bool, error)
- func (gs *GlobalStore) Delete(key string) error
- func (gs *GlobalStore) Get(key string) ([]byte, error)
- func (gs *GlobalStore) Lock() error
- func (gs *GlobalStore) Set(key string, value []byte) error
- func (gs *GlobalStore) Unlock() error
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultGlobalStore = Open("default")
Functions ¶
Types ¶
type GlobalStore ¶
type GlobalStore struct {
// contains filtered or unexported fields
}
func Open ¶
func Open(id string) *GlobalStore
func (*GlobalStore) CompareAndSwap ¶
func (*GlobalStore) Delete ¶
func (gs *GlobalStore) Delete(key string) error
func (*GlobalStore) Lock ¶
func (gs *GlobalStore) Lock() error
func (*GlobalStore) Unlock ¶
func (gs *GlobalStore) Unlock() error
Click to show internal directories.
Click to hide internal directories.