mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
feat(feeds): optimize existing cache items check (#2078)
* feat(feeds): optimize existing items cache check * feat(feeds): remove ttl from repo method ExistingItems * feat(feeds): add db integration test for ExistingItems * feat(feeds): improve release and filter processing * feat(feeds): fix failing test
This commit is contained in:
parent
92ddb919a5
commit
46f6fbe5cc
8 changed files with 266 additions and 45 deletions
|
@ -13,6 +13,7 @@ type FeedCacheRepo interface {
|
|||
GetByFeed(ctx context.Context, feedId int) ([]FeedCacheItem, error)
|
||||
GetCountByFeed(ctx context.Context, feedId int) (int, error)
|
||||
Exists(feedId int, key string) (bool, error)
|
||||
ExistingItems(ctx context.Context, feedId int, keys []string) (map[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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue