File size: 542 Bytes
37fb9ce | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | import { Redis } from 'ioredis';
const REDIS_URL = 'redis://default:vhc8qRKNhjcRgq53CMDHsb4o006jVaOl@redis-12765.c282.east-us-mz.azure.cloud.redislabs.com:12765';
async function flushCache() {
const redis = new Redis(REDIS_URL);
console.log('Flushing cache for default-org-id...');
await redis.del('org:full:default-org-id');
await redis.del('org:phone:969048009628694');
console.log('✅ Cache flushed. Worker will pull fresh raw token from DB.');
redis.quit();
}
flushCache().catch(console.error);
|