mongo

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT Imports: 11 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 Mongo cache store.

Types

type Config

type Config struct {

	// Options is the settings to set up the MongoDB client connection.
	Options *Options
	// Database is the database name of the MongoDB.
	Database string
	// Collection is the collection name for storing cache Data. Default is "cache".
	Collection 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
	// contains filtered or unexported fields
}

Config contains options for the Mongo cache store.

type Options

type Options = options.ClientOptions

Options keeps the settings to set up Mongo client connection.

Jump to

Keyboard shortcuts

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