caches

package
v0.0.0-...-994f8ce Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StrThreadSafe

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

func NewStrThreadSafe

func NewStrThreadSafe() StrThreadSafe

func (*StrThreadSafe) Add

func (strCache *StrThreadSafe) Add(str string)

func (*StrThreadSafe) Count

func (strCache *StrThreadSafe) Count() int

func (*StrThreadSafe) Has

func (strCache *StrThreadSafe) Has(str string) bool

func (*StrThreadSafe) Remove

func (strCache *StrThreadSafe) Remove(str string)

type ThreadSafeCache

type ThreadSafeCache interface {
	Add(str string)
	Remove(str string)
	Has(str string) bool
	Count() int
}

Jump to

Keyboard shortcuts

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