caching

package
v0.9.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InMemoryHttpTtlCache

type InMemoryHttpTtlCache struct {
	// contains filtered or unexported fields
}

func NewInMemoryHttpTtlCache

func NewInMemoryHttpTtlCache(
	memoryLimit string,
	maxAge time.Duration,
) *InMemoryHttpTtlCache

func (InMemoryHttpTtlCache) Delete

func (i InMemoryHttpTtlCache) Delete(key string)

func (InMemoryHttpTtlCache) Get

func (i InMemoryHttpTtlCache) Get(key string) (req []byte, ok bool)

func (InMemoryHttpTtlCache) MaxAge

func (i InMemoryHttpTtlCache) MaxAge() time.Duration

func (InMemoryHttpTtlCache) Set

func (i InMemoryHttpTtlCache) Set(key string, req []byte)

Jump to

Keyboard shortcuts

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