singleflight

package
v0.0.56 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package singleflight represents zero time caching.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Group

type Group interface {
	Do(ctx context.Context, key string, fn func() (interface{}, error)) (v interface{}, err error, shared bool)
}

Group represents interface for zero time cache.

func New

func New() Group

New returns Group implementation.

Jump to

Keyboard shortcuts

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