MapCacheLRU: Support null values in getWithSetCallback()
authorKunal Mehta <legoktm@member.fsf.org>
Tue, 13 Sep 2016 04:23:09 +0000 (21:23 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Tue, 13 Sep 2016 04:45:51 +0000 (21:45 -0700)
commita41f187511060015bd06ae3cb5b30e95e9e36180
treef6177d2dd1ff20ef1d32659f776d412479e83923
parent148f7bf0d1e20f395891eb58cb506ef37d752eaf
MapCacheLRU: Support null values in getWithSetCallback()

The rest of this class supports having a key with a null value by using
array_key_exists() instead of isset(). So Use $this->has() in
getWithSetCallback() so a null value is still identified as set.

Change-Id: Ida74a6f7e284e98f9a7d76d97312ebe2ee343f10
includes/libs/MapCacheLRU.php