Documentation
¶
Index ¶
- Constants
- Variables
- type BitFieldCommand
- type BloomFilter
- type BloomFilterConfig
- type BloomFilterStats
- type Command
- type HyperLogLog
- type MemoryStats
- type PendingMessage
- type Pipeline
- type PipelineCommand
- type RetryStrategy
- type StreamConsumer
- type StreamConsumerGroup
- type StreamEntry
- type StreamGroup
- type StreamInfo
- type Transaction
- type Value
- type ZSetMember
Constants ¶
View Source
const ( HLL_P = 14 HLL_M = 1 << HLL_P // Register count (16384) HLL_MAX_ENCODING_SIZE = 12000 )
Variables ¶
View Source
var ( ErrMaxRetriesExceeded = errors.New("maximum retry attempts exceeded") ErrOperationTimeout = errors.New("operation timeout") )
View Source
var DefaultRetryStrategy = RetryStrategy{ MaxAttempts: 3, InitialInterval: 100 * time.Millisecond, MaxInterval: 2 * time.Second, Multiplier: 2.0, Timeout: 5 * time.Second, }
Functions ¶
This section is empty.
Types ¶
type BitFieldCommand ¶
type BloomFilter ¶
type BloomFilter struct {
// contains filtered or unexported fields
}
func NewBloomFilter ¶
func NewBloomFilter(config BloomFilterConfig) *BloomFilter
func (*BloomFilter) Add ¶
func (bf *BloomFilter) Add(item []byte)
func (*BloomFilter) ApproximateCount ¶
func (bf *BloomFilter) ApproximateCount() uint
func (*BloomFilter) Clear ¶
func (bf *BloomFilter) Clear()
func (*BloomFilter) Contains ¶
func (bf *BloomFilter) Contains(item []byte) bool
func (*BloomFilter) FalsePositiveRate ¶
func (bf *BloomFilter) FalsePositiveRate() float64
func (*BloomFilter) Stats ¶
func (bf *BloomFilter) Stats() BloomFilterStats
type BloomFilterConfig ¶
type BloomFilterStats ¶
type HyperLogLog ¶
HyperLogLog struct
func NewHyperLogLog ¶
func NewHyperLogLog() *HyperLogLog
func (*HyperLogLog) Add ¶
func (h *HyperLogLog) Add(hash uint64) bool
func (*HyperLogLog) Estimate ¶
func (h *HyperLogLog) Estimate() float64
func (*HyperLogLog) Merge ¶
func (h *HyperLogLog) Merge(other *HyperLogLog)
type MemoryStats ¶
type PendingMessage ¶
type Pipeline ¶
type Pipeline struct {
Commands []PipelineCommand
}
type PipelineCommand ¶
type RetryStrategy ¶
type StreamConsumer ¶
type StreamConsumerGroup ¶
type StreamConsumerGroup struct { Consumers map[string]*StreamConsumer LastID string Pending map[string]*PendingMessage }
type StreamEntry ¶
type StreamGroup ¶
type StreamInfo ¶
type StreamInfo struct { Length int64 RadixTreeKeys int64 RadixTreeNodes int64 Groups int64 LastGeneratedID string FirstEntry *StreamEntry LastEntry *StreamEntry }
type Transaction ¶
type ZSetMember ¶
Click to show internal directories.
Click to hide internal directories.