Added ttl for redis