inmem

package
v0.0.39 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package inmem implements a layer of services in memory using purely Go constructs. In theory, they can be swapped out for services implemented using other tech, e.g. databases, redis, etc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCache added in v0.0.11

func NewCache(config CacheConfig) (*bigcache.BigCache, error)

Types

type CacheConfig added in v0.0.11

type CacheConfig struct {
	// Total capacity of cache in MB.
	Size int
	// Time-to-live for each cache entry before automatic deletion.
	TTL time.Duration
}

type CloudService added in v0.0.19

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

func NewCloudService added in v0.0.19

func NewCloudService(configs ...cloud.Config) (*CloudService, error)

func NewCloudServiceWithDefaults added in v0.0.32

func NewCloudServiceWithDefaults() *CloudService

func (*CloudService) GetCloudConfig added in v0.0.19

func (cs *CloudService) GetCloudConfig(name string) (cloud.Config, error)

func (*CloudService) ListCloudConfigs added in v0.0.19

func (cs *CloudService) ListCloudConfigs() []cloud.Config

Jump to

Keyboard shortcuts

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