Bump RL filter version to 4 to keep it in sync with the cluster. WMF-centrism, I...
[lhc/web/wiklou.git] / includes / objectcache / EmptyBagOStuff.php
1 <?php
2
3 /**
4 * A BagOStuff object with no objects in it. Used to provide a no-op object to calling code.
5 *
6 * @ingroup Cache
7 */
8 class EmptyBagOStuff extends BagOStuff {
9 function get( $key ) {
10 return false;
11 }
12
13 function set( $key, $value, $exp = 0 ) {
14 return true;
15 }
16
17 function delete( $key, $time = 0 ) {
18 return true;
19 }
20 }
21
22 /**
23 * Backwards compatibility alias for EmptyBagOStuff
24 * @deprecated
25 */
26 class FakeMemCachedClient extends EmptyBagOStuff {
27 }