MCPcopy
hub / github.com/ayn2op/discordo / Get

Method Get

internal/cache/cache.go:25–28  ·  view source on GitHub ↗
(query string)

Source from the content-addressed store, hash-verified

23}
24
25func (c *Cache) Get(query string) uint {
26 i, _ := c.items.Load(query)
27 return i.(uint)
28}
29
30// Invalidate is only needed when a member leaves and the search query reaches
31// the search limit.

Callers 7

getCachedProfileImageFunction · 0.80
renderFencedCodeBlockMethod · 0.80
fetchBuildNumberFunction · 0.80
RoundTripMethod · 0.80
GetTokenFunction · 0.80
openAttachmentMethod · 0.80
searchMemberMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected