changed function for redis.
Using hset, hget