<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def configure_cache(app):
 """ Sets up an attribute to cache data in the app context """

    log = logging.getLogger('ara.webapp.configure_cache')
    log.debug('Configuring cache')

    if not getattr(app, '_cache', None):
        app._cache = {}