MCPcopy Create free account
hub / github.com/GetStream/stream-go2 / InvalidateUserCache

Method InvalidateUserCache

moderation.go:186–195  ·  view source on GitHub ↗
(ctx context.Context, userID string)

Source from the content-addressed store, hash-verified

184}
185
186func (c *ModerationClient) InvalidateUserCache(ctx context.Context, userID string) error {
187 if userID == "" {
188 return fmt.Errorf("empty userID")
189 }
190
191 endpoint := c.client.makeEndpoint("moderation/user/cache/%s/", userID)
192
193 _, err := c.client.delete(ctx, endpoint, nil, c.client.authenticator.moderationAuth)
194 return err
195}

Callers 1

TestInvalidateUserCacheFunction · 0.80

Calls 2

makeEndpointMethod · 0.80
deleteMethod · 0.80

Tested by 1

TestInvalidateUserCacheFunction · 0.64