msgcache

package
v0.0.0-...-3339666 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2013 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(cm CacheManager)

Types

type Cache

type Cache interface {
	CacheMessage(service, username string, msg *rpc.MessageContainer, ttl time.Duration) (id string, err error)
	// XXX Is there any better way to support retrieve all feature?
	Get(service, username, id string) (msg *rpc.MessageContainer, err error)
	RetrieveAllSince(service, username string, since time.Time) (msgs []*rpc.MessageContainer, err error)
	Close() error
}

func GetCache

func GetCache(engine, host, username, password, database string, port int) (Cache, error)

type CacheManager

type CacheManager interface {
	GetCache(host, username, password, database string, port int) (Cache, error)
	Engine() string
}

Jump to

Keyboard shortcuts

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