Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can memcached keys contain spaces?

Tags:

php

memcached

I seem to have problems with memcached keys that have spaces, though I can't pinpoint exactly what.

like image 902
philfreo Avatar asked Sep 10 '25 16:09

philfreo


1 Answers

A more explicit answer (referred to by Dustin, but not referenced):

Keys

Data stored by memcached is identified with the help of a key. A key is a text string which should uniquely identify the data for clients that are interested in storing and retrieving it. Currently the length limit of a key is set at 250 characters (of course, normally clients wouldn't need to use such long keys); the key must not include control characters or whitespace.

Source: protocol.txt (Specific Version)

like image 79
calvinf Avatar answered Sep 12 '25 09:09

calvinf