inmemorystorage

package module
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2022 License: Apache-2.0 Imports: 6 Imported by: 1

README

inmemorystorage

inmemorystorage

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = &Config{
	DefaultExpiration: cache.NoExpiration,
	CleanupInterval:   time.Hour,
}

Functions

func FromCache

func FromCache(c *cache.Cache) storage.ManagedStorage

func New

func New(conf *Config) storage.ManagedStorage

func NewDefault

func NewDefault() storage.ManagedStorage

Types

type Config

type Config struct {
	DefaultExpiration time.Duration
	CleanupInterval   time.Duration
}

Jump to

Keyboard shortcuts

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