ramcache

package
v0.0.0-...-beb4b11 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(defaultExpiration, cleanupInterval time.Duration) cache.CacheService

Types

type RamCache

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

func (*RamCache) Delete

func (s *RamCache) Delete(key string)

func (*RamCache) Flush

func (s *RamCache) Flush()

func (*RamCache) Get

func (s *RamCache) Get(key string) (interface{}, bool)

func (*RamCache) Set

func (s *RamCache) Set(key string, value interface{})

Jump to

Keyboard shortcuts

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