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

Method GetVCode

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

Source from the content-addressed store, hash-verified

23}
24
25func (e emailCache) GetVCode(ctx context.Context, email string) (string, error) {
26 return e.client.Get(ctx, genEmailKey(email)).Result()
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()

Callers

nothing calls this directly

Calls 2

genEmailKeyFunction · 0.85
GetMethod · 0.65

Tested by

no test coverage detected