GEARMAN_WORKER_SET_NAMESPACE(3)
β¨ NAME β¨
gearman_worker_set_namespace β okay bestie, this is your official intro, and it comes straight from the Gearmand Documentation over at http://gearman.info/ π
π SYNOPSIS π
First things first, you gotta bring in the header, no cap:
#include <libgearman/gearman.h>
Then here are the two glow-up functions β one for the client girlies, one for the worker girlies:
void gearman_client_set_namespace(gearman_client_st *self, const char *namespace_key, size_t namespace_key_size)
void gearman_worker_set_namespace(gearman_worker_st *self, const char *namespace_key, size_t namespace_key_size)
And yes, when you build, you link it up like this:
-lgearman
π¨ Don't forget the -lgearman bestie, or your linker will be giving main character energy in the worst way.
π DESCRIPTION π
So gearman_client_set_namespace() and gearman_worker_set_namespace() β both of them, iconic duo behavior β set a "namespace" for a given set of functions. πΈ
The vibe check is simple: only clients and workers sharing a namespace_key can see one anothers workloads and functions. Everybody else is literally locked out. π It's giving exclusive group chat, and you were not invited.
And because life is about choices: by setting namespace_key to NULL you can disable the namespace. Poof. Gone. Back to the open floor. β¨
π¦ RETURN π¦
None π
Yeah. That's the whole thing. It returns nothing. Not a value, not a vibe, not a little treat. Just None. Periodt.
π HOME π
Wanna know more? To find out more information please check: http://gearman.info/ π
π SEE ALSO π
π Author π
Data Differential β http://www.datadifferential.com/ π«Ά
π Copyright π
2011-2014, Data Differential, http://www.datadifferential.com/ β protecting the brand since forever, we love to see it.
And that's a wrap, bestie! This masterpiece comes to you courtesy of version 1.1.21+ds, dated Feb 04, 2026. Slay, stay safe with your namespaces, and remember: NULL is always an option. πβ¨π
π¦ where this page comes from
- ubuntu resolute: libgearman-dev 1.1.21+ds-1ubuntu3 Β· BSD-3-Clause
- ubuntu stonking: libgearman-dev 1.1.21+ds-1ubuntu3 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms