This file (574B) 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.
export default async (options) => {
const { socket } = options
try {
const redis = socket.p3xrs.ioredis
if (!redis) {
socket.emit(options.responseEvent, { status: 'error', error: 'Not connected to Redis' })
return
}
const result = await redis.call('MEMORY', 'DOCTOR')
socket.emit(options.responseEvent, { status: 'ok', data: { text: result } })
} catch (e) {
console.error('memory/doctor failed', e)
socket.emit(options.responseEvent, { status: 'error', error: e.message })
}
}
| / | Focus search |
| ? | Show this help |
| Esc | Unfocus input |