Documentation
¶
Index ¶
Constants ¶
View Source
const ( ServiceName = "srv_cache_user" DefaultTTL = 1 * time.Minute CacheKeyPrefix = "users" )
Variables ¶
View Source
var ErrCircuitOpen = errors.New("circuit breaker is open")
Functions ¶
This section is empty.
Types ¶
type GetUsersResult ¶ added in v0.1.0
GetUsersResult 包含已解析的用户列表和当前 hash。 Users 为 nil 表示数据未变更(304 语义),由调用方据此返回 NotModified。
Click to show internal directories.
Click to hide internal directories.