cache

package
v0.0.0-...-11a7b2c Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2022 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 Cache

type Cache struct {
	ConnString                string
	Client                    *memcache.Client
	ItemExpirationTimeSeconds int32 `default:60`
}

func NewCache

func NewCache(connString string) *Cache

func (*Cache) Add

func (c *Cache) Add(indexName string, searchValue string, extra string, results []byte) error

func (*Cache) Get

func (c *Cache) Get(indexName string, searchValue string, extra string) ([]byte, error)

Jump to

Keyboard shortcuts

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