The Redis configuration is described in detail in the Nextcloud adminstrator guide. Additionally you should find many related postings, which describe how a correct setup looks like, by using the search function of this forum.
Furthermore without any error messages or related information from the Nextcloud log file, no solution can be provided.