add persistence layer using redis
update media