This file (844B) exceeds the allowed full mode (48 kb) size. The editor full height is disabled, only scrolling is allowed.
If you wish to edit a file, it is recommended to use the scroll mode as some users do not like the full height mode.
import * as sharedIoRedis from '../../shared.mjs'
const consolePrefix = 'socket.io del key'
export default async (options) => {
const {socket, payload} = options;
try {
sharedIoRedis.ensureReadonlyConnection({ socket })
let redis = socket.p3xrs.ioredis
console.info(consolePrefix, payload.key)
await redis.del(payload.key)
socket.emit(options.responseEvent, {
status: 'ok',
})
/*
await sharedIoRedis.getFullInfoAndSendSocket({
redis: redis,
responseEvent: options.responseEvent,
socket: socket,
payload: payload,
})
*/
} catch (e) {
console.error(e)
socket.emit(options.responseEvent, {
status: 'error',
error: e.message,
})
}
}
| / | Focus search |
| ? | Show this help |
| Esc | Unfocus input |