code: def clear_cache(input=None):
      
      if input is not None:
          n = input
      else:
          n = _choose_from_list(["Production cache", "Sandbox cache"], "Which cache would you like to clear?")
  
      if n == 0:
          local("redis-cli -n {} FLUSHDB".format(REDIS_PRODUCTION_CACHE_DB))
      else:
          local("redis-cli -n {} FLUSHDB".format(REDIS_SANDBOX_CACHE_DB))
docs: Clear the production or sandbox redis cache.