I'm trying to implement this into my plugin, but I'm having trouble understanding how it should work. Here's my simple test:
python:
import StorageServer
cache = StorageServer.StorageServer('IARL_Test', 24) # (Your plugin name, Cache time in hours)
test1 = IARL.get_games_as_listitems(game_list_id) #Grabs some xbmcgui listitem objects
print 'test1'
print len(test1)
print test1
cache.set('test1',test1)
print 'test2'
test2= cache.get('test1')
print len(test2)
print test2
This returns:
xml:
...
14:29:16.553 T:123145308819456 DEBUG: test1
14:29:16.553 T:123145308819456 DEBUG: 50
14:29:16.553 T:123145308819456 DEBUG: [<kodi_six.utils.wrapped_class_ListItem object at 0x7fc18b6d0370>
...
<kodi_six.utils.wrapped_class_ListItem object at 0x7fc18b9f50c0>]
14:29:18.767 T:123145308819456 DEBUG: test2
14:29:18.786 T:140735301029888 DEBUG: -- items: 50, sort method: 0, ascending: false
14:29:18.793 T:123145308819456 DEBUG: 0
It doesn't appear to cache the listitem objects and returns nothing. Is that a limitation of this, or am I implementing it incorrectly?
Edit, after turning on debugging for the plugin cache script i see that it can't evaluate this type of object, back to the drawing board for me...
xml:
NOTICE: [StorageServer-2.5.4] '_recieveData' : 'Couldn't evaluate message : "{'action': 'set', 'table': ...