database

package
v1.9.7 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Del

func Del(keys []string) error

Del deletes a key.

func GC

func GC() error

GC starts the garbage collection.

func Get

func Get(key string) (string, error)

Get gets the value of a key.

func HDel

func HDel(hashmap string, keys ...string) error

HDel deletes a hashmap or one of the keys in it.

func HGet

func HGet(hashmap, key string) (string, error)

HGet gets the value of a key in a hashmap.

func HGetAll

func HGetAll(hashmap string) (map[string]string, error)

HGetAll gets an entire hashmap.

func HKeys

func HKeys(hashmap string) ([]string, error)

HKeys gets all keys of a hashmap.

func HLen

func HLen(hashmap string) (int, error)

HLen measures the length of a hashmap.

func HSet

func HSet(hashmap, key, value string) error

HSet sets the value of a key in a hashmap.

func Set

func Set(key, value string) error

Set sets the value of a key.

func Size

func Size() int

Size returns the size.

Types

This section is empty.

Jump to

Keyboard shortcuts

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