sportradar / UnifiedOddsSdkNetCore

UnifiedFeed SDK is a client library that enables easier integration with the Betradar XML feeds. SDK exposes XML feed service interface in a more user-friendly way and isolates the client from having to do XML feed parsing, proper connection handling, error recovery, event queuing, data caching and dispatching.
https://sportradar.github.io/UnifiedOddsSdkNetCore/
Other
17 stars 14 forks source link

Best practices of manage the sports event cache #24

Closed hotyes closed 1 year ago

hotyes commented 1 year ago

Hi @dhrovat the SDK use a timer to delete sports event from cache by every 12 hours, but it seems is not configurable, is it a recommended settings? any other way to manage the cache?

dhrovat commented 1 year ago

Currently sdk does not expose option to change internal expiration time for cache items in SportEventCache (only competitor and player profile cache does - via OperationManager), and variant market description cache. The option is to delete eventids from cache via SportDataProvider, it can be done 1 by 1 or for all which have schedule date before some date.