Please enable JavaScript.
Coggle requires JavaScript to display documents.
Needed fucntions - Coggle Diagram
Needed fucntions
-
set
key:string, value:any. first run JSON.stringify for the value and returns true if successful and false if no
hset
mainKey:string, key:string, value:any. returns true if updated and false if not
hmset
mainKey:string,key:string, object. return true if successful and false if not
hdel
mainKey:string, key:string. returns true if updated and false if not
HINCRBYFLOAT
mainKey:string, key:string, value:number. check if the mainKey and the key exists and then increament the value. returns the object if updated and false if not
-
-
setex
key:string, ttl:number(in miliseconds), value:any. first run JSON.stringify for the value. returns true if updated an false if not
-
MSET
receives an array of objects containing key and value, return true if updated and false if not
exists
key:string, returns true if exists and false if not
expire
ttl:number(in miliseconds), returns true if updated and false if not