cache

package
v1.15.5 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigAdd

func ConfigAdd(name string)

Types

type Cache

type Cache[T any] struct {
	// contains filtered or unexported fields
}

func New

func New[T any](ctx context.Context, manager *cache.Manager[T]) *Cache[T]

func (*Cache[T]) NewAny

func (c *Cache[T]) NewAny(ctx context.Context, name string) grapper.AnyMiddleware[T]

func (*Cache[T]) NewAnyError

func (c *Cache[T]) NewAnyError(ctx context.Context, name string) grapper.AnyErrorMiddleware[T]

type Options

type Options struct {
	Enabled bool
}

Options struct which represents options.

func NewOptions

func NewOptions(name string) (opts *Options, err error)

NewOptions returns options from config path.

Jump to

Keyboard shortcuts

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