UNPKG

@hotmeshio/hotmesh

Version:

Serverless Workflow

1 lines 4.47 kB
'use strict';const r=b;(function(c,d){const q=b,e=c();while(!![]){try{const f=-parseInt(q(0x1ed))/0x1+-parseInt(q(0x1d6))/0x2*(parseInt(q(0x201))/0x3)+parseInt(q(0x1f0))/0x4*(parseInt(q(0x1ef))/0x5)+-parseInt(q(0x1fd))/0x6*(-parseInt(q(0x1f8))/0x7)+parseInt(q(0x1ee))/0x8+parseInt(q(0x1d1))/0x9+-parseInt(q(0x1eb))/0xa;if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0xac267));function b(c,d){const e=a();return b=function(f,g){f=f-0x1c7;let h=e[f];return h;},b(c,d);}Object[r(0x1d7)](exports,r(0x1d9),{'value':!0x0}),exports['RedisStoreService']=void 0x0;const enums_1=require(r(0x1d2)),_base_1=require(r(0x1cb));function a(){const E=['args','setnxex','SET','1024760YBLnGQ','LMOVE','946727OIprQe','132960gkLVAS','2530sVTNLA','7412kQODgO','zadd','HINCRBY','RENAME','zRangeByScore','XGROUP','HMSH_IS_CLUSTER','HDEL','92477FlmMAu','XDEL','commands','multi','XPENDING','186AxWqDp','RedisStoreService','storeClient','GET','3spWNeH','push','zrangebyscore','all','ZRANGE','EXPIRE','XLEN','map','ZADD','SCAN','./_base','LRANGE','toString','SETNX','HMGET','HINCRBYFLOAT','10996839RvYRBQ','../../../../modules/enums','sendCommand','HSCAN','XCLAIM','1662640HZyqVu','defineProperty','ZRANGEBYSCORE','__esModule','exec','HGETALL','HGET','XACK','DEL','transact','RPUSH','Function\x20not\x20implemented.','length','toUpperCase','command','HSET','XADD','ZRANGEBYSCORE_WITHSCORES'];a=function(){return E;};return a();}class RedisStoreService extends _base_1['RedisStoreBase']{constructor(c){const s=r;super(c),this[s(0x1fa)]={'get':s(0x200),'set':s(0x1ea),'setnx':s(0x1ce),'del':s(0x1de),'expire':s(0x206),'hscan':s(0x1d4),'hset':s(0x1e5),'hsetnx':'HSETNX','hincrby':s(0x1f2),'hdel':'HDEL','hget':s(0x1dc),'hmget':s(0x1cf),'hgetall':s(0x1db),'hincrbyfloat':s(0x1d0),'zrange':s(0x205),'zrangebyscore_withscores':s(0x1e7),'zrangebyscore':s(0x1d8),'zrem':'ZREM','zadd':'ZADD','lmove':s(0x1ec),'lrange':'LRANGE','lpop':'LPOP','rename':s(0x1f3),'rpush':s(0x1e0),'scan':s(0x1ca),'xack':s(0x1dd),'xdel':s(0x1f9),'xlen':'XLEN'};}[r(0x1df)](){const t=r,c=this;if(enums_1[t(0x1f6)]){const d=[],f=(h,i)=>(d[t(0x202)]({'command':h[t(0x1e3)](),'args':i}),g),g={'sendCommand':(h,...i)=>c[t(0x1ff)][t(0x1d3)]([h,...i]),async 'exec'(){const u=t;if(0x0===d[u(0x1e2)])return[];if(d['every'](h=>h['args'][0x0]===d[0x0][u(0x1e8)][0x0])){const h=c[u(0x1ff)][u(0x1fb)]();return d['forEach'](i=>u(0x1c9)===i[u(0x1e4)]?h[u(0x1c9)](i[u(0x1e8)][0x0],i[u(0x1e8)][0x1],i[u(0x1e8)][0x2]):h[i['command']](...i[u(0x1e8)])),(await h[u(0x1da)]())[u(0x1c8)](i=>i);}return Promise[u(0x204)](d[u(0x1c8)](i=>u(0x1c9)===i[u(0x1e4)]?c[u(0x1ff)][u(0x1c9)](i[u(0x1e8)][0x0],i[u(0x1e8)][0x1],i['args'][0x2]):c[u(0x1ff)][i[u(0x1e4)]](...i[u(0x1e8)])));},'XADD':(h,i,j,k)=>f(t(0x1e6),[h,i,j,k]),'XACK':(h,i,j)=>f(t(0x1dd),[h,i,j]),'XDEL':(h,i)=>f(t(0x1f9),[h,i]),'XLEN':h=>f(t(0x1c7),[h]),'XCLAIM':(h,j,k,l,m,...p)=>f(t(0x1d5),[h,j,k,l,m,...p]),'XPENDING':(h,j,k,l,m,p)=>f(t(0x1fc),[h,j,k,l,m,p]),'DEL':function(h){return f('DEL',[h]);},'EXPIRE':function(h,i){const v=t;return f(v(0x206),[h,i]);},'HDEL':(h,i)=>f(t(0x1f7),[h,i]),'HGET':(h,i)=>f('HGET',[h,i]),'HGETALL':h=>f(t(0x1db),[h]),'HINCRBYFLOAT':(h,i,j)=>f('HINCRBYFLOAT',[h,i,j]),'HMGET':(h,i)=>f(t(0x1cf),[h,i]),'HSET':(h,i)=>f(t(0x1e5),[h,i]),'LRANGE':(h,i,j)=>f(t(0x1cc),[h,i,j]),'RPUSH':(h,i)=>f('RPUSH',[h,i]),'ZADD':(h,i,j)=>f(t(0x1c9),[h,i,j]),'XGROUP':(h,i,j,k,l)=>f(t(0x1f5),[h,i,j,k,l]),'EXISTS':function(h){const w=t;throw new Error(w(0x1e1));},'HMPUSH':function(h,i){const x=t;throw new Error(x(0x1e1));},'LPUSH':function(h,i){throw new Error('Function\x20not\x20implemented.');},'SET':function(h,i){const y=t;throw new Error(y(0x1e1));},'ZRANGE_WITHSCORES':function(h,i,j){throw new Error('Function\x20not\x20implemented.');},'ZRANK':function(h,i){throw new Error('Function\x20not\x20implemented.');},'ZSCORE':function(h,i){const z=t;throw new Error(z(0x1e1));}};return g;}return this[t(0x1ff)][t(0x1fb)]();}async[r(0x1da)](...c){const A=r;return await this[A(0x1ff)]['sendCommand'](c);}async[r(0x1e9)](c,d,f){const B=r,g=await this[B(0x1ff)][this[B(0x1fa)]['set']](c,d,{'NX':!0x0,'EX':f});return this['isSuccessful'](g);}async['zAdd'](c,d,f,g){const C=r;return await(g||this[C(0x1ff)])[this[C(0x1fa)][C(0x1f1)]](c,{'score':d,'value':f[C(0x1cd)]()});}async[r(0x1f4)](c,d,f){const D=r,g=await this['storeClient'][this[D(0x1fa)][D(0x203)]](c,d,f);return g?.[D(0x1e2)]>0x0?g[0x0]:null;}}exports[r(0x1fe)]=RedisStoreService;