memcache

package
v0.0.0-...-643b5fb Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteCacheControl

func WriteCacheControl(conf *config.Record, flush bool, list bool) error

WriteCacheControl - writes cache control configuration

Types

type CacheControl

type CacheControl struct {
	FlushCache bool
	ListCache  bool
}

CacheControl - cache control commands

type Record

type Record struct {
	Config     *config.Record
	WhoisCache *cache.Cache
}

Record - standard record (struct) for config package

func New

func New(conf *config.Record) *Record

New - returns new config record initialized with default values

func (*Record) Get

func (memcache *Record) Get(key string) (interface{}, bool)

Get - get item from cache

func (*Record) Set

func (memcache *Record) Set(key string, value interface{})

Set - save item in cache

Jump to

Keyboard shortcuts

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