grpcache

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

README

grpcache

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MethodCacheSpec added in v0.0.2

type MethodCacheSpec struct {
	Enabled     bool
	TTL         time.Duration
	UniqueIdExt func(request interface{}) string
}

type RedisCache added in v0.0.2

type RedisCache interface {
	GetInterceptor() grpc.UnaryClientInterceptor
	RunCleanerListener() error
}

func NewRedisCache added in v0.0.2

func NewRedisCache(config RedisCacheConfig) RedisCache

type RedisCacheConfig

type RedisCacheConfig struct {
	RedisURL    string
	ServiceName string
	MethodSpecs map[string]MethodCacheSpec
}

Jump to

Keyboard shortcuts

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