---
name: "gearman_client_set_namespace"
section: "3"
platform: "linux"
package: "gearmand"
version: "2.2.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/gearman_client_set_namespace"
---

# gearman\_client\_set\_namespace(3)

Gearmand Documentation, https://gearman.org/gearmand/

## NAME

gearman\_client\_set\_namespace - Gearmand Documentation, https://gearman.org/gearmand/

## SYNOPSIS

\#include \<libgearman/gearman.h\>

- **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)**

  Compile and link with -lgearman

## DESCRIPTION

gearman\_client\_set\_namespace() and gearman\_worker\_set\_namespace() set a "namespace" for a given set of functions. Only clients and workers sharing a namespace\_key can see one anothers workloads and functions.

By setting namespace\_key to NULL you can disable the namespace.

## RETURN

None

## HOME

To find out more information please check: *https://gearman.org/gearmand/*

## SEE ALSO

**[gearmand(8)](/gearmand/8.md)** **[libgearman(3)](/libgearman/3.md)**

## AUTHOR

Data Differential http://www.datadifferential.com/

## COPYRIGHT

2011-2014, Data Differential, http://www.datadifferential.com/
