import type Redis from 'ioredis';

/**
 * DI token for the shared `ioredis` connection used across the
 * BFF: today the session store (`connect-redis` lands in the next
 * PR), tomorrow the OBO token cache (ADR-0014).
 *
 * Usage:
 *   @Inject(REDIS_CLIENT) private readonly redis: Redis
 */
export const REDIS_CLIENT = 'REDIS_CLIENT';

export type { Redis };
