add flush_to_redis() function in orca.py