redis_api function

Create a Redis API object