gache

package
v0.0.40 Latest Latest
Warning

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

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

Documentation

Overview

Package gache provides implementation of cache using gache

Package gache provides implementation of cache using gache

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts ...Option) (c *cache)

Types

type Option

type Option func(*cache)

func WithExpireCheckDuration

func WithExpireCheckDuration(dur time.Duration) Option

func WithExpireDuration

func WithExpireDuration(dur time.Duration) Option

func WithExpiredHook

func WithExpiredHook(f func(context.Context, string)) Option

func WithGache

func WithGache(g gache.Gache) Option

Jump to

Keyboard shortcuts

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