added basic redis functionality