roarcache

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	Put(key string, roar *roaring.Bitmap) error
	Get(key string, roar *roaring.Bitmap) error
}

func NewLocal

func NewLocal() Cache

type Local

type Local struct {
	// contains filtered or unexported fields
}

func (Local) Get

func (l Local) Get(key string, roar *roaring.Bitmap) error

func (Local) Put

func (l Local) Put(key string, roar *roaring.Bitmap) error

type Memcache

type Memcache struct {
	// contains filtered or unexported fields
}

func NewMemcache

func NewMemcache(serverAddr string, ttl time.Duration, shardSize uint64) *Memcache

func (*Memcache) Get

func (c *Memcache) Get(key string, roar *roaring.Bitmap) error

func (*Memcache) Put

func (c *Memcache) Put(key string, roar *roaring.Bitmap) error

StoreBitmap assumes it has full control on the `roar` now. Thread safe otherwise.

Jump to

Keyboard shortcuts

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