nutsdb

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2025 License: MIT Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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) any

func (*NutsDB) GetMulti

func (c *NutsDB) GetMulti(keys []string) map[string]any

func (*NutsDB) Has

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

func (*NutsDB) Set

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

func (*NutsDB) SetMulti

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

Jump to

Keyboard shortcuts

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