views:

23

answers:

0
memcached_get (memcached_st *ptr,
               const char *key, size_t key_length,
               size_t *value_length,
               uint32_t *flags,
               memcached_return_t *error);

Why need to pass the params "size_t key_length" and "size_t *value_length" here ? I think the value can be fetched by key directly.

who can help to tell me the reason, thanks.