Since v1 of the API, the C libcouchbase has required errors and get results to call back to a function, and most other language APIs do this but PHP doesn’t. Why is this? With MySQL you can just make function calls and get results back. I’m trying to use libcouchbase in a C++ app but I need to be able to get a direct result back to use with class instances but I can’t do this because the API requires a static callback where I can’t pass the pointer of my class instance to. As said, the PHP version allows a direct $value = $cb->Get(key) so why can’t the other libraries at least have this option available?
Desperately trying to get rid of MySQL in favor of Couchbase but this is a huge roadblock.