Added redis support and metadata