memcached

package
v0.0.0-...-bc169e4 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DBHost string `mapstructure:"db_host"`
	DBPort int    `mapstructure:"db_port"`
}

type Database

type Database struct {
	Mc *memcache.Client
}

func NewDatabase

func NewDatabase(cfg Config) *Database

func (Database) Delete

func (db Database) Delete(key string) error

func (Database) Get

func (db Database) Get(key string) (*memcache.Item, error)

func (Database) Set

func (db Database) Set(req *memcache.Item) error

Jump to

Keyboard shortcuts

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