using setex with expire time of 45 minutes