temp

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Temp

type Temp map[string]interface{}

func (*Temp) Merge

func (t *Temp) Merge(tinyExtras map[string]interface{})

type TempStorage

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

func NewTempStorage

func NewTempStorage(rc *redis.Client) *TempStorage

func (*TempStorage) Clear

func (ts *TempStorage) Clear(ctx context.Context, key string) error

func (*TempStorage) Get

func (ts *TempStorage) Get(ctx context.Context, key string) (Temp, error)

func (*TempStorage) NewMutex added in v0.1.8

func (ts *TempStorage) NewMutex() *sync.Mutex

func (*TempStorage) Set

func (ts *TempStorage) Set(ctx context.Context, key string, value Temp, expiration time.Duration) error

Jump to

Keyboard shortcuts

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