I'm a bit confused. There is INCR, INCRBY and HINCRBY, but no HINCR?
HINCR = HINCRBY 1
badboy_: yeah, but isn't INCR equivalent to INCRBY 1 as well then? :p
just wondering why the differences in apis
yeah, but in the beginning specialized commands were added
and later antirez decided to not do that for everything
Is there a way to tell redis-cli which socket to connect to, as I would in C with redisConnectUnix(socket)?
Similarly, how does redis-cli know where to connect without specifying on the command line?
(I'm noticing that I must specify the unix socket when writing c programs but when I do stuff in the shell with redis-cli it can somehow infer where to connect... so wondering where this difference comes from)
that's one of the first lines of redis-cli --help
Usage: ... "-h <hostname> Server hostname (default: 127.0.0.1)." "-p <port> Server port (default: 6379)."
right after that ;)
(those are at least what it uses to connect by default, what it infers)
but yeah, socket is after that