(ctx context.Context, number string, value interface{}, expiration time.Duration)
| 68 | } |
| 69 | |
| 70 | func (s *smsRepository) SetNX(ctx context.Context, number string, value interface{}, expiration time.Duration) (*redis.BoolCmd, error) { |
| 71 | return s.cache.SetNX(ctx, number, value, expiration) |
| 72 | } |
| 73 | |
| 74 | func (s *smsRepository) StoreVCode(ctx context.Context, smsID, number, vCode string) error { |
| 75 | return s.cache.StoreVCode(ctx, smsID, number, vCode) |