cachectl

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: MIT Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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