aerospike

package module
v0.0.0-...-e4bd9cd Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package aerospike provides an aerospike implementation for GeneratorStore

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GeneratorStore

type GeneratorStore struct {
	Client    *aero.Client
	Namespace string
	Set       string
}

GeneratorStore A Struct that wraps an Aerospike Client and implements the GeneratorStore interface provided by HFID. This implementation utilizes a single set with a bin for the generator's properties and another bin for the generator's associated HLL

func (GeneratorStore) Add

func (gs GeneratorStore) Add(_ context.Context, hfid int64, gName string) (bool, error)

Add Implemented using HLLAddOp command

func (GeneratorStore) InsertOrGet

InsertOrGet Implemented using a single Operate command that creates the generator if it doesn't exist and reads the generator properties and the HyperLogLog count estimate.

func (GeneratorStore) Upsert

Upsert Implemented using a single MapPutItemsOp command

Jump to

Keyboard shortcuts

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