cache

package
v1.68.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const FeatureFlag = "cache-invalidator"

FeatureFlag enables the cache invalidator

Variables

This section is empty.

Functions

func StreamInvalidator

StreamInvalidator will invalidate any mutating RPC that targets a repository in a gRPC stream based RPC

func UnaryInvalidator added in v1.56.0

UnaryInvalidator will invalidate any mutating RPC that targets a repository in a gRPC unary RPC

Types

type Invalidator

type Invalidator interface {
	StartLease(repo *gitalypb.Repository) (diskcache.LeaseEnder, error)
}

Invalidator is able to invalidate parts of the cache pertinent to a specific repository. Before a repo mutating operation, StartLease should be called. Once the operation is complete, the returned LeaseEnder should be invoked to end the lease.

Jump to

Keyboard shortcuts

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