cache

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	Configure(envs map[string]string) error
	Open() error
	Close() error
	Clear(ctx context.Context) error
	EmployeeRead(ctx context.Context, empNo int64) (*data.Employee, error)
	EmployeesRead(ctx context.Context, search data.EmployeeSearch) ([]*data.Employee, error)
	EmployeesWrite(ctx context.Context, search data.EmployeeSearch, es ...*data.Employee) error
	EmployeesDelete(ctx context.Context, empNos ...int64) error
}

func NewMemory

func NewMemory(parameters ...interface{}) Cache

func NewRedis

func NewRedis(parameters ...interface{}) Cache

Jump to

Keyboard shortcuts

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