1 =======================================================
2 Getting version information about the client and server
3 =======================================================
9 #include <libmemcached/memcached.h>
11 .. function:: const char * memcached_lib_version (void)
13 .. function:: memcached_return_t memcached_version (memcached_st *ptr)
15 Compile and link with -lmemcached
21 :func:`memcached_lib_version` is used to return a simple version string representing the libmemcached version (client library version, not server version)
23 :func:`memcached_version` is used to set the major, minor, and micro versions of each memcached server being used by the memcached_st connection structure. It returns the memcached server return code.
29 :func:`memcached_lib_version` returns a string with the version of the libmemcached driver.
31 A value of :type:`memcached_return_t` is returned from :func:'memcached_version'
33 On success that value will be `MEMCACHED_SUCCESS`.
35 If called with the `MEMCACHED_BEHAVIOR_USE_UDP` behavior set, the value
36 `MEMCACHED_NOT_SUPPORTED` will be returned.
38 Use :func:`memcached_strerror` to translate this value to
47 :manpage:`memcached(1)` :manpage:`libmemcached(3)` :manpage:`memcached_strerror(3)`