cache

package
v0.0.0-...-df4b1b0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2017 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 Cache

type Cache struct {
	sync.Mutex
	M map[string]map[string]Storable
}

Cache is an accessible map of channels to nick to entries.

func (*Cache) Remove

func (l *Cache) Remove(channel, nick string) bool

Remove deletes an entry

func (*Cache) Search

func (l *Cache) Search(channel, nick string) (Storable, bool)

Search returns backlog lines of a channel/nick.

func (*Cache) Store

func (l *Cache) Store(channel, nick string, obj Storable)

Store saves a line from a channel/nick

type Storable

type Storable struct {
	Field interface{}
}

Storable in to cache

Jump to

Keyboard shortcuts

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