cache

package
v0.0.0-...-a69e935 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2019 License: Apache-2.0 Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JobIDCache

type JobIDCache interface {
	// GetJobIDs retrieves the ids from cache based on input Aurora JobKey
	// role parameter.
	GetJobIDs(role string) []*peloton.JobID

	// PopulateFromJobCache populates the JobIDCache based on the QueryJobCache
	// result for a particular Aurora JobKey role.
	PopulateFromJobCache(
		role string,
		jobCache []*jobmgrsvc.QueryJobCacheResponse_JobCache,
	)

	// Invalidate invalidates the cache entries based on a particular Aurora
	// JobKey role.
	Invalidate(role string)
}

JobIDCache is a cache to map between Aurora JobKey and Peloton ID, cache is keyed using JobKey role.

func NewJobIDCache

func NewJobIDCache() JobIDCache

Jump to

Keyboard shortcuts

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