METADATA 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. Metadata-Version: 2.1
  2. Name: djmemcache
  3. Version: 0.13
  4. Summary: A Memcached Pool for Django
  5. Home-page: https://github.com/zhumengyuan/djmemcache
  6. Author: Duan Hongyi
  7. Author-email: duanhongyi@doopai.com
  8. License: UNKNOWN
  9. Keywords: django pymemcache pool
  10. Platform: UNKNOWN
  11. Classifier: Programming Language :: Python
  12. Classifier: Framework :: Pylons
  13. Classifier: Topic :: Internet :: WWW/HTTP
  14. Classifier: Topic :: Internet :: WWW/HTTP :: WSGI :: Application
  15. Classifier: License :: OSI Approved :: Apache Software License
  16. Requires-Dist: Django
  17. Requires-Dist: pymemcache (>=1.3.2)
  18. djmemcache
  19. =====================
  20. An efficient fast Django Memcached backend with a pool of connectors, based on
  21. pymemcache.
  22. See https://github.com/zhumengyuan/djmemcache
  23. Each connection added in the pool stays connected to Memcache or Membase,
  24. drastically limiting the number of reconnections and open sockets your
  25. application will use on high load.
  26. If you configure more than one Memcache server, each new connection
  27. will randomly pick one.
  28. Everytime a socket timeout occurs on a server, it's blacklisted so
  29. new connections avoid picking it for a while.
  30. To use this backend, make sure the package is installed in your environment
  31. then use `djmemcache.backend.PyMemcacheCache` as backend in your settings.
  32. Here's an example::
  33. CACHES = {
  34. 'default': {
  35. 'BACKEND': 'djmemcache.backend.PyMemcacheCache',
  36. 'LOCATION': '127.0.0.1:11211',
  37. 'OPTIONS': {
  38. 'MAX_POOL_SIZE': 100,
  39. 'KEY_PREFIX': b'uuboard_prefix',
  40. 'TIMEOUT': 30,
  41. 'CONNECT_TIMEOUT': 30,
  42. 'IGNORE_EXC': True,
  43. 'USE_POOLING': True
  44. }
  45. }
  46. }
  47. Options:
  48. - **MAX_POOL_SIZE:** -- The maximum number of connectors in the pool for eatch host. default: 2 ** 31.
  49. - **KEY_PREFIX** -- The time in seconds a server stays in the blacklist. default: b''
  50. - **TIMEOUT** -- The time in seconds for the socket timeout. defaults to "forever"
  51. - **CONNECT_TIMEOUT** -- The time in seconds for the connect socket timeout. defaults to "forever"
  52. - **USE_POOLING** -- Whether to apply the connection pool. defaults to "True"
  53. 2015-04-30 - 0.1
  54. ################
  55. - Initial release