memdb

package
v0.0.0-...-67c0caf Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 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 MemDBOptions

type MemDBOptions struct {
	Addr     string
	Db       int
	Username string
	Password string
}

type RedisDB

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

func New

func New(options *MemDBOptions) *RedisDB

func (*RedisDB) Connect

func (r *RedisDB) Connect() error

func (*RedisDB) Del

func (r *RedisDB) Del(keys ...string) error

func (*RedisDB) Get

func (r *RedisDB) Get(key string, val interface{}, ttl int) (*string, error)

func (*RedisDB) Set

func (r *RedisDB) Set(key string, val interface{}, ttl int) error

Jump to

Keyboard shortcuts

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