Skip to content

Commit d9dea45

Browse files
TysonAndresodabrew
authored andcommitted
Add release notes about session protocol,get and getMulti changing (#271)
And update the memcached-api.php file for the branch.
1 parent c564fd8 commit d9dea45

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

memcached-api.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,13 +189,13 @@ class Memcached {
189189

190190
public function __construct( $persistent_id = '', $on_new_object_cb = null ) {}
191191

192-
public function get( $key, $cache_cb = null, &$cas_token = null, &$udf_flags = null ) {}
192+
public function get( $key, callable $cache_cb = null, $flags = 0) {}
193193

194-
public function getByKey( $server_key, $key, $cache_cb = null, &$cas_token = null, &$udf_flags = null ) {}
194+
public function getByKey( $server_key, $key, callable $cache_cb = null, $flags = 0 ) {}
195195

196-
public function getMulti( array $keys, &$cas_tokens = null, $flags = 0, &$udf_flags = null ) {}
196+
public function getMulti( array $keys, $flags = 0) {}
197197

198-
public function getMultiByKey( $server_key, array $keys, &$cas_tokens = null, $flags = 0, &$udf_flags = null ) {}
198+
public function getMultiByKey( $server_key, array $keys, $flags = 0) {}
199199

200200
public function getDelayed( array $keys, $with_cas = null, $value_cb = null ) {}
201201

package.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ libmemcached. Please note that this is a beta release and reporting any issues w
3838
before we move closer to releasing stable version.
3939

4040
API
41-
* get commands do not take cas or user flags parameters.
42-
* get and getMulti commands take Memcached::GET_EXTENDED flag to retrieve user flags and cas tokens
41+
* The method signature of get, getByKey, getMulti, and getMultiByKey changed.
42+
* get* and getMulti* commands no longer take cas or user flags parameters.
43+
* get* and getMulti* commands now take the Memcached::GET_EXTENDED flag to retrieve user flags and cas tokens.
4344
* Fixes getStats command to return all stats from all servers
4445
* Fixes allKeys command behaviour
4546
* Fixes error where cache callback for get command was not setting expiration time properly
@@ -48,6 +49,7 @@ API
4849
* CAS tokens are returned as integers and they overflow to strings as needed
4950

5051
Session handler
52+
* The session memcached protocol config name was changed, and the default protocol was changed from text to binary protocol. If your memcached setup does not support the binary protocol(e.g. if using twemproxy), then set memcached.sess_binary_protocol = Off. (Previously called memcached.sess_binary)
5153
* Session lock algorithm updated (new ini-values memcached.sess_lock_wait_min, memcached.sess_lock_wait_max and memcached.sess_lock_retries)
5254
* Session extension uses PHP allocators (still some work to do on the rest of the extension)
5355
* Ini-values take effect during session_start or session_regenerate_id

0 commit comments

Comments
 (0)