cache

package
v0.12.8 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetResponseData

func SetResponseData(cache resources.ICache, uri string, data *ResponseData, validTime int)

Types

type ResponseData

type ResponseData struct {
	Header    http.Header
	Body      []byte
	ValidTime int
	Now       time.Time // 缓存存放的时间
}

func GetResponseData

func GetResponseData(cache resources.ICache, uri string) *ResponseData

func (*ResponseData) Complete

func (r *ResponseData) Complete(ctx eocontext.EoContext) error

Jump to

Keyboard shortcuts

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