mysql

package
v0.0.0-...-76bf06a Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MySQL

type MySQL struct {
	DB *sql.DB
}

MySQL database driver abstraction

func (*MySQL) Delete

func (m *MySQL) Delete(ctx context.Context, key string) error

Delete serves to delete data from MySQL database

func (*MySQL) Get

func (m *MySQL) Get(ctx context.Context, key string) ([]byte, error)

Get serves to retrieve cached data from MySQL database

func (*MySQL) Put

func (m *MySQL) Put(ctx context.Context, key string, data []byte) error

Put serves to place data to MySQL database as cache

Jump to

Keyboard shortcuts

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