Documentation ¶
Index ¶
- type Bitmap
- func (b *Bitmap) Add(items ...uint32) (n int)
- func (b *Bitmap) And(b2 *Bitmap) *Bitmap
- func (b *Bitmap) Clone() *Bitmap
- func (b *Bitmap) Flip(i uint64)
- func (b *Bitmap) Len() uint64
- func (b *Bitmap) MarshalBinary() ([]byte, error)
- func (b *Bitmap) Or(b2 *Bitmap) *Bitmap
- func (b *Bitmap) Remove(items ...uint32) (n int)
- func (b *Bitmap) Test(i uint32) bool
- func (b *Bitmap) ToArray() []uint32
- func (b *Bitmap) UnmarshalBinary(data []byte) error
- func (b *Bitmap) Xor(b2 *Bitmap) *Bitmap
- type List
- func (l *List[V]) Index(i int) (v V, ok bool)
- func (l *List[V]) Keys() []V
- func (l *List[V]) LPop() (v V, ok bool)
- func (l *List[V]) LPush(items ...V)
- func (l *List[V]) MarshalJSON() ([]byte, error)
- func (l *List[V]) RPop() (v V, ok bool)
- func (l *List[V]) RPush(items ...V)
- func (l *List[V]) Size() int
- func (l *List[V]) UnmarshalJSON(src []byte) error
- type Map
- type Ordered
- type Set
- type SyncMap
- func (m *SyncMap) Delete(key string) bool
- func (m *SyncMap) Get(key string) (v []byte, ok bool)
- func (m *SyncMap) Keys() (keys []string)
- func (m *SyncMap) Len() (n int)
- func (m *SyncMap) MarshalJSON() ([]byte, error)
- func (m *SyncMap) Set(key string, value []byte)
- func (m *SyncMap) UnmarshalJSON(src []byte) error
- type ZSet
- func (z *ZSet[K, S]) Delete(key K) (s S, ok bool)
- func (z *ZSet[K, S]) Get(key K) (S, bool)
- func (z *ZSet[K, S]) Incr(key K, incr S) S
- func (z *ZSet[K, S]) Iter(f func(k K, s S) bool)
- func (z *ZSet[K, S]) Len() int
- func (z *ZSet[K, S]) MarshalJSON() ([]byte, error)
- func (z *ZSet[K, S]) Set(key K, score S)
- func (z *ZSet[K, S]) UnmarshalJSON(src []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bitmap ¶ added in v1.4.0
Bitmap
func (*Bitmap) MarshalBinary ¶ added in v1.4.0
MarshalBinary
func (*Bitmap) UnmarshalBinary ¶ added in v1.4.0
UnmarshalBinary
type List ¶
type List[V any] struct { // contains filtered or unexported fields }
List implements a doubly-linked list.
type Ordered ¶ added in v1.7.3
type Ordered constraints.Ordered
type ZSet ¶
ZSet
func (*ZSet[K, S]) MarshalJSON ¶ added in v1.2.0
MarshalJSON
func (*ZSet[K, S]) UnmarshalJSON ¶ added in v1.2.0
UnmarshalJSON
Click to show internal directories.
Click to hide internal directories.