property

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: MIT Imports: 6 Imported by: 28

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store interface {
	Get(ctx context.Context, key string) (Value, error)
	Save(ctx context.Context, key string, value interface{}) error
	Expire(ctx context.Context, key string) error
	List(ctx context.Context) (map[string]Value, error)
}

func Cache added in v0.0.2

func Cache(store Store) Store

type Value

type Value string

func Parse

func Parse(value interface{}) Value

func (Value) Int

func (v Value) Int() int

func (Value) Int64

func (v Value) Int64() int64

func (*Value) Scan

func (v *Value) Scan(value interface{}) error

func (Value) String

func (v Value) String() string

func (Value) Time

func (v Value) Time() time.Time

func (Value) Value

func (v Value) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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