MediaWiki REL1_32
EmptyBagOStuff.php
Go to the documentation of this file.
1<?php
30 protected function doGet( $key, $flags = 0 ) {
31 return false;
32 }
33
34 public function add( $key, $value, $exp = 0 ) {
35 return true;
36 }
37
38 public function set( $key, $value, $exp = 0, $flags = 0 ) {
39 return true;
40 }
41
42 public function delete( $key ) {
43 return true;
44 }
45
46 public function merge( $key, callable $callback, $exptime = 0, $attempts = 10, $flags = 0 ) {
47 return true; // faster
48 }
49}
Class representing a cache/ephemeral data store.
Definition BagOStuff.php:58
A BagOStuff object with no objects in it.
add( $key, $value, $exp=0)
doGet( $key, $flags=0)
merge( $key, callable $callback, $exptime=0, $attempts=10, $flags=0)
Merge changes into the existing cache value (possibly creating a new one)