We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbfeb4b commit 607235eCopy full SHA for 607235e
server/utils/captcha/redis.go
@@ -27,11 +27,12 @@ func (rs *RedisStore) UseWithCtx(ctx context.Context) base64Captcha.Store {
27
return rs
28
}
29
30
-func (rs *RedisStore) Set(id string, value string) {
+func (rs *RedisStore) Set(id string, value string) error {
31
err := global.GVA_REDIS.Set(rs.Context, rs.PreKey+id, value, rs.Expiration).Err()
32
if err != nil {
33
- global.GVA_LOG.Error("RedisStoreSetError!", zap.Error(err))
+ return err
34
35
+ return nil
36
37
38
func (rs *RedisStore) Get(key string, clear bool) string {
0 commit comments