cache

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BigCacher

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

BigCacher keeps cached results

func NewCacher

func NewCacher(rw service.Synthesizer, config *viper.Viper) (*BigCacher, error)

NewCacher creates cached worker

func (*BigCacher) Work

func (c *BigCacher) Work(inp *api.TTSRequestConfig) (*api.Result, error)

Work try find data in the cache or invoke a real worker

Jump to

Keyboard shortcuts

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