using redis
expire after 60 seconds
extracted writeResponse