* changed display function for length to Linker::formatRevisionSize
[mediawiki.git] / includes / objectcache / EmptyBagOStuff.php
blobe956e2ee004f48bc7f890537442ca070d50cedb0
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 {