* Merged WikiPage::updateRestrictions() and Title::updateTitleProtection() into WikiP...
[mediawiki.git] / includes / objectcache / EmptyBagOStuff.php
blob2aee6b125aa0b16c02b8b425d5af26638bf95401
1 <?php
3 /**
4 * A BagOStuff object with no objects in it. Used to provide a no-op object to calling code.
6 * @ingroup Cache
7 */
8 class EmptyBagOStuff extends BagOStuff {
9 function get( $key ) {
10 return false;
13 function set( $key, $value, $exp = 0 ) {
14 return true;
17 function delete( $key, $time = 0 ) {
18 return true;
22 /**
23 * Backwards compatibility alias for EmptyBagOStuff
24 * @deprecated since 1.18
26 class FakeMemCachedClient extends EmptyBagOStuff {