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() error
- func (s *Redis) Size(group string) int
- func (s *Redis) TryLock()
- func (s *Redis) TryUnlock()
- type RedisOptions
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 NewRedisWithOptions ¶ added in v1.1.0
func NewRedisWithOptions(options RedisOptions) *Redis
NewRedisWithOptions creates Redis-backed proxy storage without exposing Redis SDK types.
func (*Redis) DeleteByID ¶
func (*Redis) LockOrWait ¶
type RedisOptions ¶ added in v1.1.0
type RedisOptions struct {
Context context.Context
Key string
Connection *coreredis.Connection //nolint:staticcheck // adapts the core Redis compatibility wrapper
}
RedisOptions is the core-owned input for Redis-backed proxy storage.
Click to show internal directories.
Click to hide internal directories.