Documentation
¶
Index ¶
- Variables
- type Etcd
- func (t *Etcd) Decrement(ctx context.Context, key string, val int64, timeout time.Duration) (int64, error)
- func (t *Etcd) DecrementIn(ctx context.Context, key string, key2 string, val int64, timeout time.Duration) (int64, error)
- func (t *Etcd) Delete(ctx context.Context, key string) error
- func (t *Etcd) Expire(ctx context.Context, key string, timeout time.Duration) error
- func (t *Etcd) Get(ctx context.Context, key string) (any, error)
- func (t *Etcd) GetIn(ctx context.Context, key string, key2 string) (any, error)
- func (t *Etcd) GetMap(ctx context.Context, key string) (any, error)
- func (t *Etcd) Has(ctx context.Context, key string) bool
- func (t *Etcd) Increment(ctx context.Context, key string, val int64, timeout time.Duration) (int64, error)
- func (t *Etcd) IncrementIn(ctx context.Context, key string, key2 string, val int64, timeout time.Duration) (int64, error)
- func (t *Etcd) Init(app interfaces.IEngine) error
- func (t *Etcd) Set(ctx context.Context, key string, args any, timeout time.Duration) error
- func (t *Etcd) SetIn(ctx context.Context, key string, key2 string, args any, timeout time.Duration) error
- func (t *Etcd) SetMap(ctx context.Context, key string, args any, timeout time.Duration) error
- func (t *Etcd) Stop() error
- func (t *Etcd) String() string
- type EtcdConfig
- type Memcached
- func (t *Memcached) Decrement(ctx context.Context, key string, val int64, timeout time.Duration) (int64, error)
- func (t *Memcached) DecrementIn(ctx context.Context, key string, key2 string, val int64, timeout time.Duration) (int64, error)
- func (t *Memcached) Delete(ctx context.Context, key string) error
- func (t *Memcached) Expire(ctx context.Context, key string, timeout time.Duration) error
- func (t *Memcached) Get(ctx context.Context, key string) (any, error)
- func (t *Memcached) GetIn(ctx context.Context, key string, key2 string) (any, error)
- func (t *Memcached) GetMap(ctx context.Context, key string) (any, error)
- func (t *Memcached) Has(ctx context.Context, key string) bool
- func (t *Memcached) Increment(ctx context.Context, key string, val int64, timeout time.Duration) (int64, error)
- func (t *Memcached) IncrementIn(ctx context.Context, key string, key2 string, val int64, timeout time.Duration) (int64, error)
- func (t *Memcached) Init(app interfaces.IEngine) error
- func (t *Memcached) Set(ctx context.Context, key string, args any, timeout time.Duration) error
- func (t *Memcached) SetIn(ctx context.Context, key string, key2 string, args any, timeout time.Duration) error
- func (t *Memcached) SetMap(ctx context.Context, key string, args any, timeout time.Duration) error
- func (t *Memcached) Stop() error
- func (t *Memcached) String() string
- type MemcachedConfig
- type Memory
- func (t *Memory) Decrement(ctx context.Context, key string, val int64, timeout time.Duration) (int64, error)
- func (t *Memory) DecrementIn(ctx context.Context, key string, key2 string, val int64, timeout time.Duration) (int64, error)
- func (t *Memory) Delete(ctx context.Context, key string) error
- func (t *Memory) Expire(ctx context.Context, key string, timeout time.Duration) error
- func (t *Memory) Get(ctx context.Context, key string) (any, error)
- func (t *Memory) GetIn(ctx context.Context, key string, key2 string) (any, error)
- func (t *Memory) GetMap(ctx context.Context, key string) (any, error)
- func (t *Memory) Has(ctx context.Context, key string) bool
- func (t *Memory) Increment(ctx context.Context, key string, val int64, timeout time.Duration) (int64, error)
- func (t *Memory) IncrementIn(ctx context.Context, key string, key2 string, val int64, timeout time.Duration) (int64, error)
- func (t *Memory) Init(app interfaces.IEngine) error
- func (t *Memory) Set(ctx context.Context, key string, args any, timeout time.Duration) error
- func (t *Memory) SetIn(ctx context.Context, key string, key2 string, args any, timeout time.Duration) error
- func (t *Memory) SetMap(ctx context.Context, key string, args any, timeout time.Duration) error
- func (t *Memory) Stop() error
- func (t *Memory) String() string
- type MemoryConfig
- type Mock
- func (t *Mock) Decrement(ctx context.Context, key string, val int64, timeout time.Duration) (int64, error)
- func (t *Mock) DecrementIn(ctx context.Context, key string, key2 string, val int64, timeout time.Duration) (int64, error)
- func (t *Mock) Delete(ctx context.Context, key string) error
- func (t *Mock) Expire(ctx context.Context, key string, timeout time.Duration) error
- func (t *Mock) Get(ctx context.Context, key string) (any, error)
- func (t *Mock) GetIn(ctx context.Context, key string, key2 string) (any, error)
- func (t *Mock) GetMap(ctx context.Context, key string) (any, error)
- func (t *Mock) Has(ctx context.Context, key string) bool
- func (t *Mock) Increment(ctx context.Context, key string, val int64, timeout time.Duration) (int64, error)
- func (t *Mock) IncrementIn(ctx context.Context, key string, key2 string, val int64, timeout time.Duration) (int64, error)
- func (t *Mock) Init(_ interfaces.IEngine) error
- func (t *Mock) Set(ctx context.Context, key string, args any, timeout time.Duration) error
- func (t *Mock) SetIn(ctx context.Context, key string, key2 string, args any, timeout time.Duration) error
- func (t *Mock) SetMap(ctx context.Context, key string, args any, timeout time.Duration) error
- func (t *Mock) Stop() error
- func (t *Mock) String() string
- type Redis
- func (t *Redis) Decrement(ctx context.Context, key string, val int64, timeout time.Duration) (int64, error)
- func (t *Redis) DecrementIn(ctx context.Context, key string, key2 string, val int64, timeout time.Duration) (int64, error)
- func (t *Redis) Delete(ctx context.Context, key string) error
- func (t *Redis) Expire(ctx context.Context, key string, timeout time.Duration) error
- func (t *Redis) Get(ctx context.Context, key string) (any, error)
- func (t *Redis) GetIn(ctx context.Context, key string, key2 string) (any, error)
- func (t *Redis) GetMap(ctx context.Context, key string) (any, error)
- func (t *Redis) Has(ctx context.Context, key string) bool
- func (t *Redis) Increment(ctx context.Context, key string, val int64, timeout time.Duration) (int64, error)
- func (t *Redis) IncrementIn(ctx context.Context, key string, key2 string, val int64, timeout time.Duration) (int64, error)
- func (t *Redis) Init(app interfaces.IEngine) error
- func (t *Redis) Set(ctx context.Context, key string, args any, timeout time.Duration) error
- func (t *Redis) SetIn(ctx context.Context, key string, key2 string, args any, timeout time.Duration) error
- func (t *Redis) SetMap(ctx context.Context, key string, args any, timeout time.Duration) error
- func (t *Redis) Stop() error
- func (t *Redis) String() string
- type RedisConfig
- type TimeHeap
- type TimeHeapItem
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrKeyNotFound = errors.New("key not found")
View Source
var ErrTypeMismatch = errors.New("type mismatch")
Functions ¶
This section is empty.
Types ¶
type Etcd ¶ added in v0.4.4
type Etcd struct {
Name string
Config EtcdConfig
// contains filtered or unexported fields
}
func NewEtcd ¶ added in v0.4.4
func NewEtcd(name string, cfg EtcdConfig) *Etcd
func (*Etcd) DecrementIn ¶ added in v0.4.4
func (*Etcd) IncrementIn ¶ added in v0.4.4
type EtcdConfig ¶ added in v0.4.4
type Memcached ¶ added in v0.0.9
type Memcached struct {
Name string
Config MemcachedConfig
// contains filtered or unexported fields
}
func NewMemcached ¶ added in v0.0.9
func NewMemcached(name string, cfg MemcachedConfig) *Memcached
func (*Memcached) DecrementIn ¶ added in v0.0.9
func (*Memcached) IncrementIn ¶ added in v0.0.9
type MemcachedConfig ¶ added in v0.0.9
type Memory ¶
type Memory struct {
Name string
Config MemoryConfig
// contains filtered or unexported fields
}
func NewMemory ¶ added in v0.0.9
func NewMemory(name string, cfg MemoryConfig) *Memory
func (*Memory) DecrementIn ¶ added in v0.0.9
func (*Memory) IncrementIn ¶ added in v0.0.9
type MemoryConfig ¶ added in v0.0.9
type Mock ¶
type Mock struct {
Name string
}
func (*Mock) DecrementIn ¶ added in v0.3.0
func (*Mock) IncrementIn ¶ added in v0.3.0
type Redis ¶ added in v0.0.9
type Redis struct {
Name string
Config RedisConfig
// contains filtered or unexported fields
}
func NewRedis ¶ added in v0.0.9
func NewRedis(name string, cfg RedisConfig) *Redis
func (*Redis) DecrementIn ¶ added in v0.0.9
func (*Redis) IncrementIn ¶ added in v0.0.9
type RedisConfig ¶ added in v0.0.9
type TimeHeap ¶
type TimeHeap []*TimeHeapItem
type TimeHeapItem ¶
type TimeHeapItem struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.