This file (641B) 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 { ensureReadonlyConnection } from '../../shared.mjs'
export default async (options) => {
const { socket } = options
try {
ensureReadonlyConnection({ socket })
const redis = socket.p3xrs.ioredis
if (!redis) {
socket.emit(options.responseEvent, { status: 'error', error: 'Not connected to Redis' })
return
}
await redis.slowlog('RESET')
socket.emit(options.responseEvent, { status: 'ok' })
} catch (e) {
console.error('monitor/slowlog-reset failed', e)
socket.emit(options.responseEvent, { status: 'error', error: e.message })
}
}
| / | Focus search |
| ? | Show this help |
| Esc | Unfocus input |