p3x-redis-ui-server
Version:
🏍️ P3X Redis UI server — Socket.IO backend for the dual Angular + React frontend with AI queries, 54 languages, and auto data decompression
2 lines (1 loc) • 332 B
JavaScript
import*as e from"../../shared.mjs";export default async s=>{const{socket:o,payload:r}=s,t=o.p3xrs.ioredis;try{e.ensureReadonlyConnection({socket:o});const{index:a,key:n}=r;await t.call("ARDEL",n,parseInt(a)),o.emit(s.responseEvent,{status:"ok"})}catch(e){console.error(e),o.emit(s.responseEvent,{status:"error",error:e.message})}};