added basic code for Redis support and stores type structure