a simple redis api when used as key value store