This file (674B) 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.
const consolePrefix = 'socket.io key get string buffer'
export default async (options) => {
const {socket, payload} = options;
try {
let redis = socket.p3xrs.ioredis
const key = payload.key;
const buffer = await redis.getBuffer(key)
const socketResult = {
key: key,
status: 'ok',
bufferValue: buffer,
};
// console.warn('socketResult', socketResult)
socket.emit(options.responseEvent, socketResult)
} catch (e) {
console.error(e)
socket.emit(options.responseEvent, {
status: 'error',
error: e.message,
})
}
}
| / | Focus search |
| ? | Show this help |
| Esc | Unfocus input |