That isn't a great idea, since that would mean no discernable difference from
- An error, like a network error
- No such key exists
- Key did exist, and it's value was 0, though I suppose I could test the type with gettype()? Seems odd to return an int instead of a boolean though.
For comparison, the phpredis api raises an exception for errors and returns a boolean false if no such key exists.