loader

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Cache for dataloader
	Cache dataloader.Cache
	// UserCache for user cache from ID
	UserCache *dataloader.Loader
)

Functions

func GetUserFromLoader

func GetUserFromLoader(ctx context.Context, id interface{}) (*model.User, error)

GetUserFromLoader get user cache

func NewEngine

func NewEngine(driver, prefix string, expire int) error

NewEngine for initialize cache engine

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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