Use standard exceptions in ObjectCache and always handle CACHE_NONE/"hash"
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 21 Sep 2016 16:38:34 +0000 (09:38 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Wed, 21 Sep 2016 21:49:15 +0000 (21:49 +0000)
commit5a3d42dbd86939a80d96f5033afdffbd520d729b
treeb4ba9904a415f9e28a13f0c59bd4a89bd9a58247
parentaca7983aeb0f8ad238464efa07cad5b2746ba8bd
Use standard exceptions in ObjectCache and always handle CACHE_NONE/"hash"

* If cache CACHE_NONE or "hash" is not set yet or was unset,
  return the proper new object anyway for sanity.
* Also fixed $params typo in newFromParams(). This should not
  have any effect since SqlBagOStuff ignores the key in this case.
* Removed excess "use" statement.

Change-Id: I36108a865273b9c209145828e5e1216b545ef431
includes/objectcache/ObjectCache.php