Page MenuHomePhabricator

memcached predefined hashes
Closed, ResolvedPublic

Description

Author: zac.bristow

Description:
(patched against r33276)

Some of the methods of the memcached class do not take into account the possibility of predefined hashes for keys [array(hash, key)]. The get_multi method already handles these hashes correctly, and this patch only allows the other methods to do the same. This does not alter existing behavior for simple string keys.


Version: unspecified
Severity: minor

Attached:

Details

Reference
bz13759

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 10:07 PM
bzimport set Reference to bz13759.
bzimport added a subscriber: Unknown Object (MLST).

zac.bristow wrote:

fixed severity - not an enhancement

Keywords: need-review, easy.

Will ask Brion to take a quick look at this; patch seems pretty simple.

Ugh, this is some scary code. :D

Documentation comments all indicate that $key parameters are to be strings. If arrays are also a possibility, please update the documentation in the class to indicate the proper way to make calls.

karun.84 wrote:

Changed from easy.