cachectl

package
v1.0.0-rc.58 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package cachectl 是媒体数据来源(TMDB、豆瓣、Bangumi、Fanart.tv、OMDb)的响应缓存共用的开关: 显式重新刮削时不读缓存,直接问来源要现在的数据(取到的照样写进缓存,替换旧的)。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bypass

func Bypass(ctx context.Context) context.Context

Bypass 返回一个不读缓存的 ctx:用它发的请求跳过缓存里的旧响应,取到的新响应照样写进缓存。

func Bypassed

func Bypassed(ctx context.Context) bool

Bypassed 报告 ctx 是不是要跳过缓存读。

Types

This section is empty.

Jump to

Keyboard shortcuts

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