MCPcopy Create free account
hub / github.com/GoSimplicity/LinkMe / StoreVCode

Method StoreVCode

internal/repository/cache/email.go:29–31  ·  view source on GitHub ↗
(ctx context.Context, email, vCode string)

Source from the content-addressed store, hash-verified

27}
28
29func (e emailCache) StoreVCode(ctx context.Context, email, vCode string) error {
30 return e.client.Set(ctx, genEmailKey(email), vCode, time.Duration(10)*time.Minute).Err()
31}
32
33func genEmailKey(email string) string {
34 return fmt.Sprintf("linkme:email:%s", email)

Callers

nothing calls this directly

Calls 2

genEmailKeyFunction · 0.85
SetMethod · 0.65

Tested by

no test coverage detected