pünktchen 1409 Posted October 5, 2018 Posted October 5, 2018 @@Luke i'm creating a plugin that should act like a calendar for tv show premiers in germany. What's the purpose of AutoRefreshLevels and it's numbers and when should i implement IHasCacheKey?
Luke 42077 Posted October 6, 2018 Posted October 6, 2018 You would implement that if the standard 3 hour cache in the server is not ideal. I would check out the tunein plugin as an example: https://github.com/MediaBrowser/TuneIn/blob/master/MediaBrowser.Plugins.TuneIn/TuneInChannel.cs
pünktchen 1409 Posted October 7, 2018 Author Posted October 7, 2018 You would implement that if the standard 3 hour cache in the server is not ideal. I would check out the tunein plugin as an example: https://github.com/MediaBrowser/TuneIn/blob/master/MediaBrowser.Plugins.TuneIn/TuneInChannel.cs Maybe i'm blind, but i can't find any code where the cache timespan is defined in the tunein channel.
Luke 42077 Posted October 7, 2018 Posted October 7, 2018 https://github.com/MediaBrowser/TuneIn/blob/master/MediaBrowser.Plugins.TuneIn/TuneInChannel.cs#L501
pünktchen 1409 Posted October 8, 2018 Author Posted October 8, 2018 https://github.com/MediaBrowser/TuneIn/blob/master/MediaBrowser.Plugins.TuneIn/TuneInChannel.cs#L501Yeah, i've seen this. But it is just a string that is combined from user name and geographical location. How does this affect the timespan of the cache?
Luke 42077 Posted October 8, 2018 Posted October 8, 2018 It's not time based. It's more like an etag.
pünktchen 1409 Posted October 8, 2018 Author Posted October 8, 2018 Okay, so without the string there's no caching, with it's three hours and if i want more then i have to create a custom method. Correct?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now