wiki.techinc.nl/includes/objectcache/EmptyBagOStuff.php
Sam Reed f985524076 More versions added to @deprecated tags
Couple of inbound calls fixed up

Some ancient code removed as it's been marked deprecated
2011-05-06 21:50:18 +00:00

27 lines
474 B
PHP

<?php
/**
* A BagOStuff object with no objects in it. Used to provide a no-op object to calling code.
*
* @ingroup Cache
*/
class EmptyBagOStuff extends BagOStuff {
function get( $key ) {
return false;
}
function set( $key, $value, $exp = 0 ) {
return true;
}
function delete( $key, $time = 0 ) {
return true;
}
}
/**
* Backwards compatibility alias for EmptyBagOStuff
* @deprecated since 1.18
*/
class FakeMemCachedClient extends EmptyBagOStuff {
}