are the apis wrong? they don't insert when space is in the name
Thu, 09/22/2011 - 06:48
If I use couch one.com I can have a document with an space in the ID. as example "this id" and set any value there.
but we are using now the couchbase server 2.0 and we have tried with the PHP api, the python couchbased memcache, memcache, also with Ruby.
in all the cases set a new variable fails when the set has an space inside its value:
for example this fails:
$mc->set("this name",1);
var_dump($mc->get("this name"));
maybe I am getting wrong here, or it is a limit in the couchbase server....
how to insert an id with an space in the name in the couchbase server 2.0 that contains an space in its id?
thank you
memcached doesn't allow spaces, new lines, or carriage returns as key names. In the case of Couchbase the id is actually the key that is placed into memcached so you cannot do this. I would recommend that you just replace all spaces with and '_'.
Hope that helps.