MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / set

Method set

pkg/auth/rights/cache.go:100–103  ·  view source on GitHub ↗
(authInfo *ttnpb.AuthInfoResponse, err error)

Source from the content-addressed store, hash-verified

98}
99
100func (c *cachedAuthInfoRes) set(authInfo *ttnpb.AuthInfoResponse, err error) {
101 c.authInfo = authInfo
102 c.cachedRes.set(authInfo.GetUniversalRights(), err)
103}
104
105// NewInMemoryCache returns a new in-memory cache on top of the given fetcher.
106// Successful responses are valid for the duration of successTTL, unsuccessful

Callers

nothing calls this directly

Calls 2

setMethod · 0.45
GetUniversalRightsMethod · 0.45

Tested by

no test coverage detected