Check aioredis version for deprecated parameter
Check aioredis version for deprecated parameter

Starting with aioredis 1.3.1, the loop parameter is deprecated when calling
create_redis. See aio-libs/aioredis#666 and django/channels_redis#179.

When running Python 3.8+ and aioredis 1.3.1+, calls should omit the loop
parameter. Otherwise, continue to include the parameter for the older
versions that expect it.

django/asgi_redis