Skip to content
Advertisement

Tag: predis

Fastest way to check key exists in redis – php

Is there any other faster way than EXISTS, to check if a key exists in redis or not? My problem is, I have over 1 million records in redis and I need to do a key_exists check. This should happen within 10ms. Any Ideas around this? Answer Using the EXISTS command is the fastest way, this should be extremely quick.

Advertisement