nutsdb

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package nutsdb use the https://github.com/xujiajun/nutsdb as cache driver

Index

Constants

View Source
const Name = "nutsdb"

Name driver name

Variables

This section is empty.

Functions

This section is empty.

Types

type NutsDB

type NutsDB struct {
}

NutsDB definition TODO

func (*NutsDB) Clear

func (c *NutsDB) Clear() error

func (*NutsDB) Close

func (c *NutsDB) Close() error

func (*NutsDB) Del

func (c *NutsDB) Del(key string) error

func (*NutsDB) DelMulti

func (c *NutsDB) DelMulti(keys []string) error

func (*NutsDB) Get

func (c *NutsDB) Get(key string) interface{}

func (*NutsDB) GetMulti

func (c *NutsDB) GetMulti(keys []string) map[string]interface{}

func (*NutsDB) Has

func (c *NutsDB) Has(key string) bool

func (*NutsDB) Set

func (c *NutsDB) Set(key string, val interface{}, ttl time.Duration) (err error)

func (*NutsDB) SetMulti

func (c *NutsDB) SetMulti(values map[string]interface{}, ttl time.Duration) (err error)

Jump to

Keyboard shortcuts

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