db

package
v0.0.0-...-c054a23 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(rClient *redis.Client, key string)

Check function searches for a key in the database, creates the key

func Decrement

func Decrement(rClient *redis.Client, key string)

Decrement function decrements the value for a given key.

func GetRedisClient

func GetRedisClient(cred *RClient) *redis.Client

GetResiClient returns a new redis client given the credential.

func Increment

func Increment(rClient *redis.Client, key string)

Increment function increases the value for a given key.

Types

type RClient

type RClient struct {
	Addr string
	Pass string
	Db   int
}

Jump to

Keyboard shortcuts

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