ttl

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTTL

func GetTTL(headers http.Header, defaultTTL int) time.Duration

GetTTL - Retrieves TTL is seconds from Expires and Cache-Control HTTP headers.

func GetTTLFromCacheControl

func GetTTLFromCacheControl(cacheType string, cacheControl string) time.Duration

GetTTLFromCacheControl - Retrieves TTL value from Cache-Control header.

Types

This section is empty.

Jump to

Keyboard shortcuts

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