if memcache.get('static-version') == os.environ['CURRENT_VERSION_ID']:
    pass
else:
    memcache.flush_all()
memcache.set(key='static-version', value=os.environ['CURRENT_VERSION_ID'])
How can I have Google App Engine clear memcache every time a site is deployed?