def key(self, arg_list): """ Returns a cache key, given a list of arguments. """ from esp.cache.marinade import marinade_dish return self.name + '|' + ':'.join( [marinade_dish(arg) for arg in arg_list])
def key_filt(self, filt): """ Given filtered arguments, returns a key.""" return 'TOKEN__' + self.name + '|' + ':'.join( [marinade_dish(arg) for arg in filt])