cache

package
v2.0.9 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: MIT Imports: 5 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 interface {
	GetImage(value string, extension extension.Type) (*entity.Image, error)
	LoadImage(value string, extension extension.Type) error
	AddImage(value string, image *entity.Image)
}

Cache is the interface to cache images.

func New

func New() Cache

New is responsible to create a new Cache.

func NewMutexDecorator

func NewMutexDecorator(cache Cache) Cache

NewMutexDecorator is responsible to create a mutex decorator to read/write cache.

Jump to

Keyboard shortcuts

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