Move strlen calculation to redis.c and pass size_t to redis.c as well