Documentation
¶
Index ¶
- func AppendCmd(b []byte, cmd redis.Cmder) []byte
- func CmdString(cmd redis.Cmder) string
- func CmdsString(cmds []redis.Cmder) (string, string)
- type Cache
- func (c *Cache) Decrement(key string, value int64) (int64, error)
- func (c *Cache) Delete(key string) (int64, error)
- func (c *Cache) Flush()
- func (c *Cache) Get(key string) interface{}
- func (c *Cache) GetLock(lockName string, acquireTimeout, lockTimeOut time.Duration) (string, error)
- func (c *Cache) GetString(key string) (string, error)
- func (c *Cache) Increment(key string, value int64) (int64, error)
- func (c *Cache) IncrementFloat(key string, value float64) (float64, error)
- func (c *Cache) IsExist(key string) bool
- func (c *Cache) LPush(key string, values interface{}) (int64, error)
- func (c *Cache) RPop(key string) interface{}
- func (c *Cache) ReleaseLock(lockName, code string) bool
- func (c *Cache) Set(key string, val interface{}, timeout time.Duration) error
- func (c *Cache) WithContext(ctx context.Context) cache.ICache
- func (c *Cache) WithDB(db int) cache.ICache
- func (c *Cache) XAdd(key, id string, values []string) (string, error)
- func (c *Cache) XDel(key string, id string) (int64, error)
- func (c *Cache) XRead(key string, count int64) (interface{}, error)
- func (c *Cache) ZAdd(key string, score float64, member interface{}) interface{}
- func (c *Cache) ZRangeByScore(key string, min, max int64) ([]string, error)
- func (c *Cache) ZRem(key string, members ...interface{}) error
- type Option
- type TracingHook
- func (h *TracingHook) AfterProcess(ctx context.Context, cmd redis.Cmder) error
- func (h *TracingHook) AfterProcessPipeline(ctx context.Context, cmders []redis.Cmder) error
- func (h *TracingHook) BeforeProcess(ctx context.Context, cmd redis.Cmder) (context.Context, error)
- func (h *TracingHook) BeforeProcessPipeline(ctx context.Context, cmd []redis.Cmder) (context.Context, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CmdsString ¶
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) IncrementFloat ¶
func (*Cache) ReleaseLock ¶
func (*Cache) ZRangeByScore ¶ added in v0.2.7
type Option ¶
type Option func(p *config)
func WithAttributes ¶
WithAttributes specifies additional attributes to be added to the span.
func WithTracer ¶
WithTracer specifies a tracer provider to use for creating a tracer. If none is specified, the global provider is used.
type TracingHook ¶
type TracingHook struct {
// contains filtered or unexported fields
}
func (*TracingHook) AfterProcess ¶
func (h *TracingHook) AfterProcess(ctx context.Context, cmd redis.Cmder) error
func (*TracingHook) AfterProcessPipeline ¶
func (h *TracingHook) AfterProcessPipeline(ctx context.Context, cmders []redis.Cmder) error
func (*TracingHook) BeforeProcess ¶
func (*TracingHook) BeforeProcessPipeline ¶
Click to show internal directories.
Click to hide internal directories.