macchiato

package module
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2022 License: MIT Imports: 11 Imported by: 0

README

macchiato

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

func NewCache

func NewCache(config *Config) (Cache, error)

func (*Cache) Del

func (c *Cache) Del(s string) error

func (*Cache) Get

func (c *Cache) Get(s string) (interface{}, bool)

func (*Cache) Set

func (c *Cache) Set(s string, i interface{}, n int) error

type CacheCast

type CacheCast struct {
	Interface interface{}
}

type CacheDB

type CacheDB struct {
	ID      string `bson:"id"`
	Content string `bson:"content"`
	Type    string `bson:"type"`
}

type Config

type Config struct {
	MongoURI   string
	Database   string
	Collection string
}

Jump to

Keyboard shortcuts

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