Closed hallowatcher closed 1 year ago
Sure, i'll look into it.
@hallowatcher can you please tell me with manager you are using?
@theetherGit im using Another Redis Desktop Manager (https://github.com/qishibo/AnotherRedisDesktopManager) and as Provider im using ioredis, but I would assume the same happens with the regular redis provider as the lines of code are the same.
ok ioredis.
Sorry, I literally made a big mistake. New version will be released with examples by midnight.
https://github.com/etherCorps/SK-Redis-SessionManager/blob/e28b5ca531c403b58d4ecd5a0cb535917065563c/src/lib/providers/ioredis.ts#L113
I believe this line of code need to be:
since the sessionId is already stored with the colon in redis:
Another option is to store the key without the left part of the colon:
ghrVLf9Ge1ZSjo4ZtiVO4plA0Q47U5N7CFXF
in that example.Otherwise it will try to find
sk_ioredis_session:sk_ioredis_session:ghrVLf9Ge1ZSjo4ZtiVO4plA0Q47U5N7CFXF
, which it can't:I'm currently on version
1.0.3
.PS also check the other providers and functions