store

package
v1.1.48 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppAccessTokenKey

func AppAccessTokenKey(appID string) string

func AppTicketKey

func AppTicketKey(appID string) string

func TenantAccessTokenKey

func TenantAccessTokenKey(appID, tenantKey string) string

Types

type DefaultStore

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

func NewDefaultStoreWithLog added in v1.1.20

func NewDefaultStoreWithLog(logger *log.LoggerProxy) *DefaultStore

func (*DefaultStore) Get

func (s *DefaultStore) Get(ctx context.Context, key string) (string, error)

func (*DefaultStore) Put

func (s *DefaultStore) Put(ctx context.Context, key, value string, ttl time.Duration) error

type Store

type Store interface {
	Get(context.Context, string) (string, error)
	Put(context.Context, string, string, time.Duration) error
}

type Value

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

Jump to

Keyboard shortcuts

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