def get_cache_key_counter(bound_method, *args, **kwargs):
 model = bound_method.im_self
 ormcache = bound_method.clear_cache.im_self
 (cache, key0, counter) = ormcache.lru(model)
 key = (key0 + ormcache.key(model, *args, **kwargs))
 return (cache, key, counter)

def get_cache_key_counter ( bound_method , * args , ** kwargs ) : model = bound_method . im_self ormcache = bound_method . clear_cache . im_self ( cache , key0 , counter ) = ormcache . lru ( model ) key = ( key0 + ormcache . key ( model , * args , ** kwargs ) ) return ( cache , key , counter )
return the cache .