Commit Graph

32 Commits

Author SHA1 Message Date
Robert
e39a2e62f4 Add option to locally enforce payload size limit (#515)
Add a configuration option to enforce an item size limit on the client side. This avoids sending large items
over the wire and getting rejected by the server which can cause delays. The default is 0 for no limit.
The same error code RES_E2BIG is used for the client side limit as for the server side limit.
2023-04-27 08:48:49 -07:00
hulk
e6df8ab3f6 FIX: store_retry_count shouldn't be set implicitly (#452)
It's wired that store commands would be auto-retry implicitly while the default value of store_retry_count was 2, as well as the timeout, would be 3 times in those store commands which may confuse users. IMHO, the retry should be set explicitly instead of implicitly.
2021-08-22 21:57:11 -07:00
Julien Boulen
38ad2e0b09 Fix memcached.ini comment - remove reference to old config name (#456)
Co-authored-by: julien <no-reply@gmail.com>
2020-10-09 02:52:03 -07:00
Julien Boulen
ed3f39d07e Fix memcached.ini comment - use new config name not the old one (#455) 2020-03-11 04:00:43 -07:00
Gerry Demaret
cd62e8f463 Update documented default for sess_lock_retries (#432)
The documented default was 200, while in reality it seems this is
actually set to 5. While 5 is arguably on the low side, at least have
the documentation in sync with reality.
2019-05-21 11:44:17 -07:00
Tom Van Looy
549e7c8a3a Change session_lock default ini values (#350) 2018-07-20 16:01:55 -07:00
Aaron Stone
f4dafd207e Add INI setting to choose session consistent hash (ketama or ketama_weighted) (#392)
Provides a new INI option to select the same consistent hash behavior as
older versions of php-memcached, to aid in migration from PHP 5.x to PHP
7.x. When `memcached_sess_consistent_hash_type` is set to `ketama` or
`ketama_weighted`, that sets either MEMCACHED_BEHAVIOR_KETAMA or
MEMCACHED_BEHAVIOR_KETAMA_WEIGHTED, respectively.

Resolves #344
2018-04-08 19:41:01 -07:00
Aaron Stone
dfcbc02693 Remove memcached.ini reference to deprecated sess_lock_max_wait setting 2018-01-23 04:13:27 -08:00
Remi Collet
0a90491dd1 set sess_binary_protocol off by default with older libmemcached 2017-02-20 19:32:37 +01:00
Remi Collet
d81697f7a0 Refresh memcached.ini provided configuration
- remove deprecated options
- add missing memcached.sess_server_failure_limit option
- comment all options default value (only needed when not default value)
  see php.ini-production which follow this convention
2017-02-20 19:27:39 +01:00
Tyson Andre
045ab843ce Document memcached.sess_binary_protocol
And remove a TODO found in the code for allowing users to configure
whether or not to use binary protocols for sessions.

For issue #233
2016-07-25 13:46:39 -07:00
Mikko Koppanen
eb54525c11 Merge pull request #235 from TysonAndre/update-default-memcached.ini-docs
[php7] Document ini settings for the default memcached connection configs
2016-03-22 23:17:13 +00:00
Tyson Andre
e755d9db12 Document miscellaneous ini settings and new defaults for PHP7 release
This updates some of the memcached.ini documentation settings
to reflect the default ini settings used in php_memcached.c.
Some new settings were added, and other settings had changes to their defaults.

There are other new/updated settings, which can be changed in other PRs.

For issue #233
2016-03-20 16:14:56 -07:00
Tyson Andre
4bb264e600 Document ini settings for the default memcached connection configurations
This documents memcached.default_consistent_hash, default_binary_protocol, and
default_connect_timeout.

For issue #233
2016-03-20 15:56:24 -07:00
Mikko
cf4d0ead4f Update package.xml for release along with memcached.ini 2016-02-01 01:34:03 +00:00
Mikko
ff07307069 Merge branch 'master' of github.com:onethumb/php-memcached
Conflicts:
	config.m4
2013-11-18 17:15:42 +08:00
Nicolas Van Eenaeme
761fc79381 Added ini setting for memcached.store_retry_count 2013-11-15 15:04:49 +01:00
Eric Merrill
b0cdcb3444 More granular session locking support
Adding memcached.sess_lock_max_wait, which sets how long
a incoming lock request will wait for the lock before
dying.

And memcached.sess_lock_expire, which sets how long until
the lock expires, independent of the current
max_execution_time.
2013-10-22 19:01:43 -04:00
Mikko
028323610c Added support for session sasl 2013-10-18 04:24:25 +08:00
Ilia Alshanetsky
5fb643693f Merge pull request #45 from xoJIog/master
add connect timeout option to memcached.ini
2013-03-03 07:08:49 -08:00
Ilia Alshanetsky
585d31483e Merge pull request #64 from Vendini/Remove_ini_option
Removed unused memcached.ini option
2013-03-03 07:03:35 -08:00
Mitch Hagstrand
3313fa157b Removed unused memcached.ini option
After the merge of commits 5ff9516240 and faf84af789
the memcached.sess_num_replicas option is no longer used
2013-01-31 15:42:13 -08:00
Don MacAskill
2ac3a9c390 Add msgpack serializer support for better cross-language binary serialization, fixed broken igbinary support 2013-01-10 17:22:07 -08:00
David Terei
f75b16b42c Add missing memcached.use_sasl ini option to doc. 2013-01-03 23:38:51 +11:00
xoJIog
d7ed677ee9 memcached.ini added connect timeout 2012-11-20 11:20:06 +02:00
Ilia Alshanetsky
40ce9b4633 Merge branch 'master' of https://github.com/Vendini/php-memcached into Vendini-master
Conflicts:
	memcached.ini
	php_memcached.c
	php_memcached.h
	php_memcached_session.c
2012-11-10 10:21:47 -05:00
Ilia Alshanetsky
1162d10312 Merge pull request #23 from dclaisse/session_consistent_hashing
add consistent hashing option for session handling
2012-11-03 11:36:19 -07:00
Mitch Hagstrand
faf84af789 Added Memcached Session Replicas by changes below
1. Allow for automatic removal of failed server to session handler (MEMCACHED_BEHAVIOR_REMOVE_FAILED_SERVERS)
2. Allow X number of replicas (MEMCACHED_BEHAVIOR_NUMBER_OF_REPLICAS)
3. Added option for consistent hasing (MEMCACHED_BEHAVIOR_KETAMA)
4. Added error msg when session handler couldn't obtain a lock
2012-10-04 23:44:56 -07:00
gureedo
cc7b0decd6 added replica options to memcached.ini 2012-09-02 21:18:10 +06:00
Damien Claisse
be3253c72f add consistent hashing option for session handling 2012-07-24 18:38:44 +02:00
Andrei Zmievski
b73b8100e4 Support for binary protocol in sessions.
(patch from trevor@blubolt.com)
2011-12-29 14:13:32 -08:00
Teddy Grenman
d76834e43c Add INI documentation. 2009-12-29 11:14:03 +02:00