Documentation
¶
Index ¶
- Constants
- func GetMutexName(key string) string
- type Aerospike
- func (m *Aerospike) Add(group string, id string) error
- func (m *Aerospike) Delete(group string, id string) error
- func (m *Aerospike) DeleteByID(id string) error
- func (m *Aerospike) GetIDs() []string
- func (m *Aerospike) GetKey(group string, id string) string
- func (m *Aerospike) GetKeys(group string) []string
- func (m *Aerospike) Size(group string) int
- type Memory
- type Redis
- func (s *Redis) Add(group string, id string) error
- func (s *Redis) Delete(group string, id string) error
- func (s *Redis) DeleteByID(id string) error
- func (s *Redis) GetIDs() []string
- func (s *Redis) GetKeys(group string) []string
- func (s *Redis) LockOrWait()
- func (s *Redis) Size(group string) int
- func (s *Redis) TryLock()
- func (s *Redis) TryUnlock()
Constants ¶
View Source
const ( MutexPrefix = "mutex_" DefaultPrefix = "default:" )
Variables ¶
This section is empty.
Functions ¶
func GetMutexName ¶
Types ¶
type Aerospike ¶
type Aerospike struct {
// contains filtered or unexported fields
}
func NewAerospike ¶
func (*Aerospike) DeleteByID ¶
type Memory ¶
type Memory struct {
// contains filtered or unexported fields
}
func (*Memory) DeleteByID ¶
type Redis ¶
type Redis struct {
// contains filtered or unexported fields
}
func (*Redis) DeleteByID ¶
func (*Redis) LockOrWait ¶
func (s *Redis) LockOrWait()
Click to show internal directories.
Click to hide internal directories.