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 new redis manager.

func (*Manager) Get

func (m *Manager) Get(c context.Context, bid id.BlobID) (*mysql.BlobRecord, error)

func (*Manager) Insert

func (m *Manager) Insert(c context.Context, br *mysql.BlobRecord) error

func (*Manager) Remove

func (m *Manager) Remove(c context.Context, bid id.BlobID) error

Jump to

Keyboard shortcuts

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