Redis is an in-memory data structure store, used as a database, cache, and message broker. It supports data structures such as strings, hashes, lists, sets, and more. Incorporating Redis can significantly improve the performance of Evolution API by enabling faster data access and efficient caching.Set the Redis environment variables in the .env for Docker or the dev-env.yml for NPM file as follows:
Copy
# Set to true to enable Redis.CACHE_REDIS_ENABLED=false# Redis server URICACHE_REDIS_URI=redis://redis:6379# Prefix key word for redis dataCACHE_REDIS_PREFIX_KEY=evolution# Time to keep data cachedCACHE_REDIS_TTL=604800# Save WhatsApp credentials on RedisCACHE_REDIS_SAVE_INSTANCES=true