redis clone by cpp implementation