Lines Matching refs:c
9 redisContext *c; in main() local
15 c = redisConnectWithTimeout(hostname, port, timeout); in main()
16 if (c == NULL || c->err) { in main()
17 if (c) { in main()
18 printf("Connection error: %s\n", c->errstr); in main()
19 redisFree(c); in main()
27 reply = redisCommand(c,"PING"); in main()
32 reply = redisCommand(c,"SET %s %s", "foo", "hello world"); in main()
37 reply = redisCommand(c,"SET %b %b", "bar", (size_t) 3, "hello", (size_t) 5); in main()
42 reply = redisCommand(c,"GET foo"); in main()
46 reply = redisCommand(c,"INCR counter"); in main()
50 reply = redisCommand(c,"INCR counter"); in main()
55 reply = redisCommand(c,"DEL mylist"); in main()
61 reply = redisCommand(c,"LPUSH mylist element-%s", buf); in main()
66 reply = redisCommand(c,"LRANGE mylist 0 -1"); in main()
75 redisFree(c); in main()