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 char pointer
  • a boolean
  • a gearman_string_t
  • an int64_t

pick your fighter, bestie. all four are valid, all four are iconique. πŸ‘‘


πŸ¦‹ SEE ALSO πŸ¦‹

like, go read those too, they're part of the same friend group πŸ’œ


🫢 Author 🫢

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

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