Coverage for resources/lib/Cache.py : 95%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
# -*- coding: utf-8 -*- # Module: Cache # Author: asciidisco # Created on: 24.07.2017 # License: MIT https://goo.gl/WA1kby
except ImportError: import pickle
"""Caching facade for KODIs window API"""
"""Setup in memory cache & stores window instance in memory"""
"""Setup in memory cache"""
""" Checks if an item exists in the mem cache
:param cache_id: ID of the cached item :type cache_id: str. :returns: bool -- Matching item found """
""" Returns a cached item
:param cache_id: ID of the cached item :type cache_id: str. :returns: mixed -- Cached item """
""" Adds an item to the cache
:param cache_id: ID of the item to be cached :type cache_id: str. :param contents: Contents to be cached :type contents: mixed """
def __get_window_instance(cls): """ Returns the current window instance from KODI
:returns: xmbcguiWindow -- Window instance """ |