Implement redis protocol