MediaWiki
REL1_22
|
00001 <?php 00029 class EmptyBagOStuff extends BagOStuff { 00030 00036 function get( $key, &$casToken = null ) { 00037 return false; 00038 } 00039 00046 function set( $key, $value, $exp = 0 ) { 00047 return true; 00048 } 00049 00057 function cas( $casToken, $key, $value, $exp = 0 ) { 00058 return true; 00059 } 00060 00066 function delete( $key, $time = 0 ) { 00067 return true; 00068 } 00069 00077 public function merge( $key, closure $callback, $exptime = 0, $attempts = 10 ) { 00078 return true; 00079 } 00080 } 00081 00086 class FakeMemCachedClient extends EmptyBagOStuff { 00087 }