DocKV

package module
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 6 Imported by: 0

README

DocKV

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

func NewCache

func NewCache(expTime int) *Cache

func (*Cache) Clear

func (c *Cache) Clear()

Clear cache

func (*Cache) Delete

func (c *Cache) Delete(key string)

Delete key from cache

func (*Cache) IsExist

func (c *Cache) IsExist(key string) bool

IsExist whether key exist in cache

func (*Cache) IsExpire

func (c *Cache) IsExpire(key string) bool

IsExpire whether key is expire

func (*Cache) IsNil

func (c *Cache) IsNil(key string) bool

IsNil whether key is exist but not in sheet

func (*Cache) Set

func (c *Cache) Set(key, value string, rowIndex int)

Set cache

func (*Cache) SetNotExistInSheet

func (c *Cache) SetNotExistInSheet(key string)

type DocKV

type DocKV struct {
	// contains filtered or unexported fields
}

func NewDocKV

func NewDocKV(sheetID string, model interface{}, jwtConfig []byte, expTime int) *DocKV

func (*DocKV) Delete

func (d *DocKV) Delete(key string) error

func (*DocKV) Get

func (d *DocKV) Get(key string) interface{}

func (*DocKV) Set

func (d *DocKV) Set(key string, value interface{}) error

Jump to

Keyboard shortcuts

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