cachekeys

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Map

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

func (*Map) Bus

func (v *Map) Bus() <-chan Value

func (*Map) Del

func (v *Map) Del(key string)

func (*Map) Each added in v0.1.1

func (v *Map) Each(call func(key string, value *string))

func (*Map) Get

func (v *Map) Get(key string) (value *string)

func (*Map) Has

func (v *Map) Has(key string) (ok bool)

func (*Map) Set

func (v *Map) Set(key string, value *string)

type MapGetter added in v0.1.1

type MapGetter interface {
	Get(key string) (value *string)
	Has(key string) (ok bool)
	Each(call func(key string, value *string))
}

type MapSetter added in v0.1.1

type MapSetter interface {
	Set(key string, value *string)
	Del(key string)
}

type Mapper added in v0.1.1

type Mapper interface {
	MapGetter
	MapSetter
}

func NewWithoutBus added in v0.1.1

func NewWithoutBus() Mapper

type MapperWithBus added in v0.1.1

type MapperWithBus interface {
	Bus() <-chan Value
	MapGetter
	MapSetter
}

func NewWithBus added in v0.1.1

func NewWithBus() MapperWithBus

type Value

type Value struct {
	Key   string
	Value *string
}

Jump to

Keyboard shortcuts

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