import { Transport, ClientOptions } from '@nestjs/microservices';

export const redisClientOptions: ClientOptions = {
  transport: Transport.REDIS,
  options: {
    // url: process.env.GRPC_URL,
    // url: 'redis://:redis9394@127.0.0.1:6379/',
    url: process.env.REDIS_URL,
    retryAttempts: 20,
    retryDelay: 2,
  },
};
