Help us shape the future of Go! Take the 2026 Go Developer Survey

cassandra

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2017 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCassandraBackend

func NewCassandraBackend(conf map[string]string, logger log.Logger) (physical.Backend, error)

NewCassandraBackend constructs a Cassandra backend using a pre-existing keyspace and table.

Types

type CassandraBackend

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

CassandraBackend is a physical backend that stores data in Cassandra.

func (*CassandraBackend) Delete

func (c *CassandraBackend) Delete(key string) error

Delete is used to permanently delete an entry

func (*CassandraBackend) Get

func (c *CassandraBackend) Get(key string) (*physical.Entry, error)

Get is used to fetch an entry

func (*CassandraBackend) List

func (c *CassandraBackend) List(prefix string) ([]string, error)

List is used ot list all the keys under a given prefix, up to the next prefix.

func (*CassandraBackend) Put

func (c *CassandraBackend) Put(entry *physical.Entry) error

Put is used to insert or update an entry

Jump to

Keyboard shortcuts

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