kv

package
v0.0.0-...-6d0effa Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(key string) (string, bool)

func Kv

func Kv() *kv

func Set

func Set[T time.Time | *time.Time | int64 | int](key string, value string, expiredTime T)

Types

type Driver

type Driver interface {
	Get(key string) (string, bool)
	Set(key string, value string, expireTime *time.Time)
}

Jump to

Keyboard shortcuts

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