(ctx context.Context, email string)
| 23 | } |
| 24 | |
| 25 | func (e emailCache) GetVCode(ctx context.Context, email string) (string, error) { |
| 26 | return e.client.Get(ctx, genEmailKey(email)).Result() |
| 27 | } |
| 28 | |
| 29 | func (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() |
nothing calls this directly
no test coverage detected