bitstorage

package
v0.0.0-...-b1e3f6c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BitmapStorage

type BitmapStorage interface {
	SetBits(ctx context.Context, key string, index ...int) error
	ClearBits(ctx context.Context, key string, index ...int) error
	Traverse(ctx context.Context, key string, fn func(index int)) error

	Bitmap(ctx context.Context, key string) (*bitmap.Bitmap, error)
	SaveBitmap(ctx context.Context, key string, bm *bitmap.Bitmap) error
}

func NewRedisBitStorage

func NewRedisBitStorage(client *redis.Client) BitmapStorage

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL