Make BagOStuff::incr abstract to discourage bad implementations
authorAaron Schulz <aschulz@wikimedia.org>
Mon, 18 Mar 2019 23:09:26 +0000 (16:09 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Mon, 18 Mar 2019 23:09:26 +0000 (16:09 -0700)
commit560774814d136dd12c781383858bfb468cf10a92
treee31d632cc8ffacf827cf501d6dcdaf3d540d66aa
parent5612194879bd4f5c7d3e7c75d42b08bf91b84428
Make BagOStuff::incr abstract to discourage bad implementations

Callers should really use atomic TTL-preserving implementations
so that calling code works correctly. The old default base class
code did not do either.

Change-Id: Icf66db05e48b86c8d481dc08dc9041bd1fa6dbe9
includes/libs/objectcache/BagOStuff.php
includes/libs/objectcache/CachedBagOStuff.php
includes/libs/objectcache/EmptyBagOStuff.php
includes/libs/objectcache/HashBagOStuff.php
includes/libs/objectcache/MemcachedBagOStuff.php
includes/libs/objectcache/MemcachedPhpBagOStuff.php
includes/libs/objectcache/RESTBagOStuff.php