mysql

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMySQLCache

func NewMySQLCache(ctx context.Context, options *Options) (server.Backend, error)

NewMySQLCache returns a server.Backend interface which was implemented with the MySQL backend. The first argument `ctx` is used to control the lifecycle of mysql connection pool.

Types

type Options

type Options struct {
	DSN      string
	ConnPool generic.ConnectionPoolConfig
}

Options contains settings for controlling the connection to MySQL.

Jump to

Keyboard shortcuts

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