Add metadata to redis and API