GEARMAN_RESULT_STORE_STRING(3)
π NAME π
gearman_result_store_string β Gearmand Documentation, http://gearman.info/
okay bestie, real talk: this whole page lives in the Gearmand manual, section 3, and it's basically the group chat for one lil' family of functions that all hang out around gearman_result_st. no cap, there are a LOT of them. let's get into it π
β¨ SYNOPSIS β¨
#include <libgearman/gearman.h>
type gearman_result_st
gearman_result_st *gearman_task_result(gearman_task_st *task)
int64_t gearman_result_integer(const gearman_result_st *self)
bool gearman_result_boolean(const gearman_result_st *self)
gearman_string_t gearman_result_string(const gearman_result_st *self)
gearman_return_t gearman_result_store_string(gearman_result_st *self, gearman_string_t arg)
void gearman_result_store_integer(gearman_result_st *self, int64_t value)
gearman_return_t gearman_result_store_value(gearman_result_st *self, const void *value, size_t size)
size_t gearman_result_size(const gearman_result_st *self)
const char *gearman_result_value(const gearman_result_st *self)
bool gearman_result_is_null(const gearman_result_st *self)
and then the link step, which you literally cannot skip:
Compile and link with -lgearman
πΈ DESCRIPTION πΈ
so. gearman_result_st is the result set type. that's its whole thing. it's the little container where a result hangs out before it becomes The Final Answer. β¨
and the way it gets used? gearman_aggregator_fn gets passed on these types β and it uses them to cook up a final result that gets returned to the client. that's the vibe. the aggregator is the one doing the cooking, the result set is the lil pan. π
gearman_task_result() is the reverse-unlock: you hand it a gearman_task_st and it hands you back a gearman_result_st. easy trade. π€
and once you've got your gearman_result_st? you can pull the resulting value out as any of these four:
- a
charpointer - a
boolean - a
gearman_string_t - an
int64_t
pick your fighter, bestie. all four are valid, all four are iconique. π
π¦ SEE ALSO π¦
gearmand(8)libgearman(3)gearman_client_error()orgearman_worker_error()
like, go read those too, they're part of the same friend group π
π«Ά Author π«Ά
Data Differential http://www.datadifferential.com/
π Copyright π
2011-2014, Data Differential, http://www.datadifferential.com/
and that's the whole page, bestie!! this was Gearmand version 1.1.21+ds, dated Feb 04, 2026, and honestly? iconic of it. go store some strings. slay π
β¨π¦
π¦ 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