def __cache(self, file, content, document):
        """
        Caches given file.

        :param file: File to cache.
        :type file: unicode
        :param content: File content.
        :type content: list
        :param document: File document.
        :type document: QTextDocument
        """

        self.__files_cache.add_content(**{file: CacheData(content=content, document=document)})
Caches given file.

        :param file: File to cache.
        :type file: unicode
        :param content: File content.
        :type content: list
        :param document: File document.
        :type document: QTextDocument