def cache_model(key_params, timeout='<STR_LIT:default>'):
def decorator_fn(fn):<EOL><INDENT>return CacheModelDecorator().decorate(key_params, timeout, fn)<EOL><DEDENT>return decorator_fn<EOL>
Caching decorator for app models in task.perform