nutsdb

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NutsDB

type NutsDB struct {
}

NutsDB definition

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