Guest User

Untitled

a guest
Apr 17th, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.96 KB | None | 0 0
  1. extension=memcached.so
  2.  
  3. [memcached]
  4. ; Use session locking
  5. ; valid values: On, Off
  6. ; the default is On
  7. memcached.sess_locking = Off
  8.  
  9. ; Session spin lock retry wait time in microseconds.
  10. ; Be carefull when setting this value.
  11. ; Valid values are integers, where 0 is interpreted as
  12. ; the default value. Negative values result in a reduces
  13. ; locking to a try lock.
  14. ; the default is 150000
  15. ;memcached.sess_lock_wait = 150000
  16.  
  17. ; The maximum time, in seconds, to wait for a session lock
  18. ; before timing out.
  19. ; Setting to 0 results in default behavior, which is to
  20. ; use max_execution_time.
  21. ;memcached.sess_lock_max_wait = 0
  22.  
  23. ; The time, in seconds, before a lock should release itself.
  24. ; Setting to 0 results in the default behaviour, which is to
  25. ; use the memcached.sess_lock_max_wait setting. If that is
  26. ; also 0, max_execution_time will be used.
  27. ;memcached.sess_lock_expire = 0
  28.  
  29. ; memcached session key prefix
  30. ; valid values are strings less than 219 bytes long
  31. ; the default value is "memc.sess.key."
  32. memcached.sess_prefix = "session."
  33.  
  34. ; memcached session consistent hash mode
  35. ; if set to On, consistent hashing (libketama) is used
  36. ; for session handling.
  37. ; When consistent hashing is used, one can add or remove cache
  38. ; node(s) without messing up too much with existing keys
  39. ; default is Off
  40. memcached.sess_consistent_hash = On
  41.  
  42. ; Allow failed memcached server to automatically be removed
  43. ; default is 0
  44. memcached.sess_remove_failed = 1
  45.  
  46. ; Write data to a number of additional memcached servers
  47. ; This is "poor man's HA" as libmemcached calls it.
  48. ; If this value is positive and sess_remove_failed is enabled
  49. ; when a memcached server fails the session will continue to be available
  50. ; from a replica. However, if the failed memcache server
  51. ; becomes available again it will read the session from there
  52. ; which could have old data or no data at all
  53. memcached.sess_number_of_replicas = 1
  54.  
  55. ; memcached session binary mode
  56. ; libmemcached replicas only work if binary mode is enabled
  57. memcached.sess_binary = On
  58.  
  59. ; memcached session replica read randomize
  60. memcached.sess_randomize_replica_read = Off
  61.  
  62. ; memcached connect timeout value
  63. ; In non-blocking mode this changes the value of the timeout
  64. ; during socket connection in milliseconds. Specifying -1 means an infinite timeout.
  65. memcached.sess_connect_timeout = 100
  66.  
  67. ; Session SASL username
  68. ; Both username and password need to be set for SASL to be enabled
  69. ; In addition to this memcached.use_sasl needs to be on
  70. ;memcached.sess_sasl_username = NULL
  71.  
  72. ; Session SASL password
  73. ;memcached.sess_sasl_password = NULL
  74.  
  75. ; Set the compression type
  76. ; valid values are: fastlz, zlib
  77. ; the default is fastlz
  78. ;memcached.compression_type = "fastlz"
  79.  
  80. ; Compression factor
  81. ; Store compressed value only if the compression
  82. ; factor (saving) exceeds the set limit.
  83. ;
  84. ; store compressed if:
  85. ; plain_len > comp_len * factor
  86. ;
  87. ; the default value is 1.3 (23% space saving)
  88. ;memcached.compression_factor = "1.3"
  89.  
  90. ; The compression threshold
  91. ;
  92. ; Do not compress serialized values below this threshold.
  93. ; the default is 2000 bytes
  94. ;memcached.compression_threshold = 2000
  95.  
  96. ; Set the default serializer for new memcached objects.
  97. ; valid values are: php, igbinary, json, json_array, msgpack
  98. ;
  99. ; json - standard php JSON encoding. This serializer
  100. ; is fast and compact but only works on UTF-8
  101. ; encoded data and does not fully implement
  102. ; serializing. See the JSON extension.
  103. ; json_array - as json, but decodes into arrays
  104. ; php - the standard php serializer
  105. ; igbinary - a binary serializer
  106. ; msgpack - a cross-language binary serializer
  107. ;
  108. ; The default is igbinary if available, then msgpack if available, then php otherwise.
  109. ;memcached.serializer = "igbinary"
  110.  
  111. ; Use SASL authentication for connections
  112. ; valid values: On, Off
  113. ; the default is Off
  114. ;memcached.use_sasl = Off
  115.  
  116. ; The amount of retries for failed store commands.
  117. ; This mechanism allows transparent fail-over to secondary servers when
  118. ; set/increment/decrement/setMulti operations fail on the desired server in a multi-server
  119. ; environment.
  120. ; the default is 2
  121. ;memcached.store_retry_count = 2
  122.  
  123. [session]
  124. ; Use memcache as a session handler
  125. session.save_handler = memcached
  126.  
  127. ; session.name specifies the name of the session which is used as cookie name. It should only contain alphanumeric
  128. ; characters. Defaults to PHPSESSID. See also session_name().
  129. ;session.name = "PHPSESSID"
  130.  
  131. ; session.gc_maxlifetime specifies the number of seconds after which data will be seen as 'garbage' and potentially
  132. ; cleaned up. Garbage collection may occur during session start (depending on session.gc_probability and
  133. ; session.gc_divisor). The default is 1440.
  134. ;session.gc_maxlifetime = 1440
  135.  
  136. ; Defines a comma separated of server urls to use for session storage,
  137. ; for example "tcp://host1:11211, tcp://host2:11211".
  138. ; Each url may contain parameters which are applied to that server,
  139. ; they are the same as for the Memcache::addServer() method.
  140. ; For example "tcp://host1:11211?persistent=1&weight=1&timeout=1&retry_interval=15"
  141. session.save_path = "memcached-1:11211,memcached-2:11211"
Add Comment
Please, Sign In to add comment