add aof rotate implemention tested codes