mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 00:39:13 +00:00
feat(feeds): improve caching (#1191)
* feat(feeds): improve caching * fix(feeds): put cache if not empty * fix(feeds): reassign loop var * fix(feeds): enable busy_timeout again * fix(feeds): enable busy_timeout again
This commit is contained in:
parent
8c7c147328
commit
9793764905
6 changed files with 88 additions and 22 deletions
|
@ -14,6 +14,7 @@ type FeedCacheRepo interface {
|
|||
GetCountByFeed(ctx context.Context, feedId int) (int, error)
|
||||
Exists(feedId int, key string) (bool, error)
|
||||
Put(feedId int, key string, val []byte, ttl time.Time) error
|
||||
PutMany(ctx context.Context, items []FeedCacheItem) error
|
||||
Delete(ctx context.Context, feedId int, key string) error
|
||||
DeleteByFeed(ctx context.Context, feedId int) error
|
||||
DeleteStale(ctx context.Context) error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue