redisdb

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

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

func NewDatabase

func NewDatabase(dataSource string) *Database

func (*Database) Close

func (db *Database) Close() error

func (*Database) Delete

func (db *Database) Delete(key string) error

Delete removes the key from the key-value store.

func (*Database) Get

func (db *Database) Get(key string) ([]byte, error)

Get retrieves the given key if it's present in the key-value store.

func (*Database) Has

func (db *Database) Has(key string) (bool, error)

Has retrieves if a key is present in the key-value store.

func (*Database) Put

func (db *Database) Put(key string, value []byte) error

Put inserts the given value into the key-value store.

Jump to

Keyboard shortcuts

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