Hi everybody,
As far as I know the maximum key size for an item in memcached is 250
and can be extended to 255. I've just installed the lastest version of
memcached on my Ubuntu and tried to set an item with length of 300 and
600. I was surprise that it was set correctly, even using get/set
command, C/C++ library libmemcached or memcached extension of PHP.
I checked the source code, in memcached.h :
typedef struct _stritem {
.................
    uint8_t         nkey;       /* key length, w/terminating null and
padding */
................
} item;

the type of key length is still uint8_t which is 1 byte, how can it
manage with key length 300 and 600 ?

Reply via email to