redis

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Client rds.Cmdable

Functions

This section is empty.

Types

type RedisConfig added in v0.0.5

type RedisConfig struct {
	Hosts string `yaml:"hosts" default:"127.0.0.1:6379"`
	DB    int    `yaml:"database" default:"0"`
}

type Service added in v0.0.5

type Service struct {
}

func (*Service) Lifetime added in v0.0.5

func (s *Service) Lifetime(ioc container.Interface, request contracts.RequestContract)

Lifetime container callback usually register request lifetime instance to IoC-Container (per-request unique) this function will run before every request

func (*Service) Register added in v0.0.5

func (s *Service) Register(app *framework.App) error

Jump to

Keyboard shortcuts

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