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

Function NewEmailCache

internal/repository/cache/email.go:19–23  ·  view source on GitHub ↗
(client redis.Cmdable)

Source from the content-addressed store, hash-verified

17}
18
19func NewEmailCache(client redis.Cmdable) EmailCache {
20 return &emailCache{
21 client: client,
22 }
23}
24
25func (e emailCache) GetVCode(ctx context.Context, email string) (string, error) {
26 return e.client.Get(ctx, genEmailKey(email)).Result()

Callers 1

InitWebServerFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected