mtcache

package
v0.0.0-...-14c1498 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	MaxSizeMB int64
	MaxTTL    time.Duration
}

type MachineTranslationCache

type MachineTranslationCache interface {
	handler.MachineTranslationHandler
	Save(model.MTRequestMetadata, []string, []model.TargetSegment) error
	Metrics() string
}

func NewCachingSegmentTranslator

func NewCachingSegmentTranslator(config Config) (MachineTranslationCache, error)

Jump to

Keyboard shortcuts

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