cache

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AllProxiesCount    = 0
	SSRProxiesCount    = 0
	SSProxiesCount     = 0
	VmessProxiesCount  = 0
	TrojanProxiesCount = 0

	UsableProxiesCount = 0

	LastCrawlTime = "Loading……"
)
View Source
var Cache = cache.New(cache.NoExpiration, 10*time.Minute)

Functions

func GetProxies

func GetProxies(key string) proxy.ProxyList

Get proxies from Cache

func GetString

func GetString(key string) string

Get string from cache

func SetProxies

func SetProxies(key string, proxies proxy.ProxyList)

Set proxies to cache

func SetString

func SetString(key, value string)

Set string to cache

Types

This section is empty.

Jump to

Keyboard shortcuts

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