refactor(router): removed the previously created function and added an optional field i.e seconds in the set_key_if_not_exists and renamed the function to set_key_if_not_exists_with_expiry which will check on the seconds value provided and then decide on the default ttl or the supplied one