pünktchen 1259 Posted October 5, 2018 Share 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? Link to comment Share on other sites More sharing options...
Luke 37113 Posted October 5, 2018 Share Posted October 5, 2018 It's no longer used. Link to comment Share on other sites More sharing options...
pünktchen 1259 Posted October 5, 2018 Author Share Posted October 5, 2018 And what about IHasCacheKey? Link to comment Share on other sites More sharing options...
Luke 37113 Posted October 6, 2018 Share 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 Link to comment Share on other sites More sharing options...
pünktchen 1259 Posted October 7, 2018 Author Share 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. Link to comment Share on other sites More sharing options...
Luke 37113 Posted October 7, 2018 Share Posted October 7, 2018 https://github.com/MediaBrowser/TuneIn/blob/master/MediaBrowser.Plugins.TuneIn/TuneInChannel.cs#L501 Link to comment Share on other sites More sharing options...
pünktchen 1259 Posted October 8, 2018 Author Share 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? Link to comment Share on other sites More sharing options...
Luke 37113 Posted October 8, 2018 Share Posted October 8, 2018 It's not time based. It's more like an etag. Link to comment Share on other sites More sharing options...
pünktchen 1259 Posted October 8, 2018 Author Share 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? Link to comment Share on other sites More sharing options...
Luke 37113 Posted October 8, 2018 Share Posted October 8, 2018 Yup Link to comment Share on other sites More sharing options...
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