def cache_key(self, method_name):
key = "<STR_LIT>"<EOL>method = getattr(self, "<STR_LIT>".format(method_name), None)<EOL>if method:<EOL><INDENT>key = method()<EOL><DEDENT>return key<EOL>
decides if this query is cacheable, returns a key if it is, otherwise empty