DEV Community

Discussion on: Remaining Stateless - Using Redis for token blacklisting in Node JS

Collapse
 
mr_cea profile image
Ogbonna Basil

Your Correct Eric , Sets have a bigO notation of O(1). However every token generated is always unique. Also the push method for a List is also an armotized O(1). But yes you can use sets