init repo
This commit is contained in:
12
internal/storage/cache/url.go
vendored
Normal file
12
internal/storage/cache/url.go
vendored
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user