carta
memcached_get_sasl_callbacks(3)

memcached_get_sasl_callbacks3

Libmemcached documentation

Overview

libmemcached allows you to plug in your own callbacks function used by libsasl to perform SASL authentication.

Please note that SASL requires the memcached binary protocol, and you have to specify the callbacks before you connect to the server.

memcached_set_sasl_auth_data() is a helper function defining the basic functionality for you, but it will store the username and password in memory. If you choose to use this method you have to call memcached_destroy_sasl_auth_data() before calling memcached_free() <#_CPPv414memcached_freeP12memcached_st> to avoid a memory leak. You should NOT call memcached_destroy_sasl_auth_data() if you specify your own callback function with memcached_set_sasl_callbacks().

Return value

memcached_get_sasl_callbacks() returns the callbacks currently used by this memcached handle. memcached_set_sasl_auth_data() returns MEMCACHED_SUCCESS <#_CPPv4N18memcached_return_t17MEMCACHED_SUCCESSE> upon success.

History

  • Arch Linux 2026-11-01: the text shown here
  • Debian 13 (Trixie)
  • Debian 12 (Bookworm)
  • Debian 11 (Bullseye) to Debian 8 (Jessie)
  • Debian 7 (Wheezy)

From libmemcached-awesome 1.1.4-4 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.