mysql

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initer

func Initer() cache.Initer

Initer returns the cache.Initer for the MySQL cache store.

Types

type Config

type Config struct {

	// DSN is the database source name to the MySQL.
	DSN string
	// Table is the table name for storing cache data. Default is "cache".
	Table string
	// Encoder is the encoder to encode cache data. Default is a Gob encoder.
	Encoder cache.Encoder
	// Decoder is the decoder to decode cache data. Default is a Gob decoder.
	Decoder cache.Decoder
	// InitTable indicates whether to create a default cache table when not exists automatically.
	InitTable bool
	// contains filtered or unexported fields
}

Config contains options for the MySQL cache store.

Jump to

Keyboard shortcuts

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