multilevel

package
v1.0.1-0...-4a73120 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package multilevel providers a cache container wrapper for wrapping multi-level containers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustNewContainer

func MustNewContainer(containers ...caching.Container) caching.Container

MustNewContainer is like as NewContainer but panic if an error happens.

func NewContainer

func NewContainer(containers ...caching.Container) (caching.Container, error)

NewContainer returns a new multi-level caching container.

Types

type Container

type Container struct {
	List []caching.Container
}

func (*Container) Clear

func (c *Container) Clear() error

func (*Container) Get

func (c *Container) Get(key string) (*caching.Item, error)

func (*Container) Put

func (c *Container) Put(item *caching.Item) error

func (*Container) Remove

func (c *Container) Remove(key string) error

Jump to

Keyboard shortcuts

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