mgocache

package
v0.0.0-...-537bc95 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2019 License: MIT Imports: 4 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 {
	// contains filtered or unexported fields
}

func New

func New(col *mgo.Collection) *Cache

func (*Cache) Clean

func (p *Cache) Clean() error

func (*Cache) Delete

func (p *Cache) Delete(key []byte) error

func (*Cache) Empty

func (p *Cache) Empty() error

func (*Cache) Get

func (p *Cache) Get(key []byte) ([]byte, bool)

func (*Cache) GetRange

func (p *Cache) GetRange(key []byte, low, high int64) (b []byte, ok bool)

func (*Cache) Set

func (p *Cache) Set(key []byte, value []byte) error

func (*Cache) SetTimeout

func (p *Cache) SetTimeout(key []byte, value []byte, timeout time.Duration) error

Jump to

Keyboard shortcuts

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