cache

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

* @Author: reel * @Date: 2023-05-16 07:50:35 * @LastEditors: reel * @LastEditTime: 2024-03-27 04:48:15 * @Description: 请填写简介

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OptFunc

type OptFunc func(*buntdb.SetOptions)

func SetTTL

func SetTTL(ttl time.Duration) OptFunc

设置过期时间

type Store

type Store interface {
	Name() string
	Status() int8
	Start() error
	Stop() error
	Shrink() error
	Get(string) string
	Del(key string) error
	Set(key, value string, funcs ...OptFunc) (err error)
	SetConfig(funcs ...dsn.DsnFunc) (err error)
	SetIndex(indexName, index string, fs ...func(a string, b string) bool) error
	GetByIndex(indexName string, iterator func(key string, value string) bool) error
	// contains filtered or unexported methods
}

func New

func New() Store

Jump to

Keyboard shortcuts

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