memcached.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * Copyright (C) 2009, 2013 Henning Westerholt
  3. * Copyright (C) 2013 Charles Chance, sipcentric.com
  4. *
  5. * This file is part of Kamailio, a free SIP server.
  6. *
  7. * Kamailio is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or
  10. * (at your option) any later version
  11. *
  12. * Kamailio is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License along
  18. * with this program; if not, see <http://www.gnu.org/licenses/>.
  19. */
  20. /*!
  21. * \file
  22. * \brief memcached module
  23. */
  24. #include <libmemcached/memcached.h>
  25. #ifndef MEMCACHED_H
  26. #define MEMCACHED_H
  27. /*! server string */
  28. extern char* mcd_srv_str;
  29. /*! cache expire time in seconds */
  30. extern unsigned int mcd_expire;
  31. /*! cache storage mode, set or add */
  32. extern unsigned int mcd_mode;
  33. /*! server timeout */
  34. extern unsigned int mcd_timeout;
  35. /*! Internal or system memory manager */
  36. extern unsigned int mcd_memory;
  37. /*! stringify all values retrieved from memcached */
  38. extern unsigned int mcd_stringify;
  39. /*! memcached handle */
  40. extern struct memcached_st* memcached_h;
  41. /*! memcached server list */
  42. extern struct memcached_server_st *servers;
  43. #endif