scan_keys method compatibility with the earlier redis' version.