#NEWLINE# def cache( self , * args , **kwargs ) : #NEWLINE# #INDENT# "Decorate a function to cache itself with supplied parameters\n\n        :param args: Used to make the key unique for this function, as in region()\n            above.\n\n        :param kwargs: Parameters to be passed to get_cache(), will override defaults\n\n        Example::\n\n            # Assuming a cache object is available like:\n            cache = CacheManager(dict_of_config_options)\n\n\n            def populate_things():\n\n                @cache.cache('mycache', expire=15)\n                def load(search_term, limit, offset):\n                    return load_the_data(search_term, limit, offset)\n\n                return load('rabbits', 20, 0)\n\n        .. note::\n\n            The function being decorated must only be called with\n            positional arguments.\n\n        " #NEWLINE# return _cache_decorate ( args , self , kwargs , None )