init repo

This commit is contained in:
liuyuanchuang
2025-12-10 18:33:37 +08:00
commit 48e63894eb
2408 changed files with 1053045 additions and 0 deletions

12
internal/storage/cache/url.go vendored Normal file
View File

@@ -0,0 +1,12 @@
package cache
import "context"
func IncrURLCount(ctx context.Context) (int64, error) {
key := "formula_recognition:url_count"
count, err := RedisClient.Incr(ctx, key).Result()
if err != nil {
return 0, err
}
return count, nil
}