Sync Mode6Test frontend improvements: pinch zoom 500% max, no flicker/flip, deferred rendering
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
// Script to list all Redis/Valkey keys and their values for visualization (CommonJS)
|
||||
const Redis = require('ioredis');
|
||||
|
||||
const redis = new Redis({
|
||||
host: process.env.REDIS_HOST || '127.0.0.1',
|
||||
port: Number(process.env.REDIS_PORT || 6379),
|
||||
password: process.env.REDIS_PASSWORD,
|
||||
});
|
||||
|
||||
(async () => {
|
||||
try {
|
||||
const keys = await redis.keys('*');
|
||||
const result = [];
|
||||
for (const key of keys) {
|
||||
let value = await redis.get(key);
|
||||
try { value = JSON.parse(value); } catch {}
|
||||
result.push({ key, value });
|
||||
}
|
||||
console.log(JSON.stringify(result, null, 2));
|
||||
process.exit(0);
|
||||
} catch (err) {
|
||||
console.error('Error listing Redis keys:', err);
|
||||
process.exit(1);
|
||||
}
|
||||
})();
|
||||
Reference in New Issue
Block a user