redis

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

func NewManager

func NewManager(client *redis.Client) *Manager

NewManager creates a redis manager.

func (*Manager) GetCar

func (m *Manager) GetCar(c context.Context, cid id.CarID) (*car.CarEntity, error)

func (*Manager) InsertCar

func (m *Manager) InsertCar(c context.Context, cid id.CarID, cr *car.Car) error

func (*Manager) RemoveCar

func (m *Manager) RemoveCar(c context.Context, cid id.CarID) error

Jump to

Keyboard shortcuts

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