Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
BlackHole.php
Go to the documentation of this file.
1 <?php
26 #require_once 'Zend/Cache/Backend/ExtendedInterface.php';
27 
31 #require_once 'Zend/Cache/Backend.php';
32 
40  extends Zend_Cache_Backend
42 {
50  public function load($id, $doNotTestCacheValidity = false)
51  {
52  return false;
53  }
54 
61  public function test($id)
62  {
63  return false;
64  }
65 
78  public function save($data, $id, $tags = array(), $specificLifetime = false)
79  {
80  return true;
81  }
82 
89  public function remove($id)
90  {
91  return true;
92  }
93 
111  public function clean($mode = Zend_Cache::CLEANING_MODE_ALL, $tags = array())
112  {
113  return true;
114  }
115 
121  public function getIds()
122  {
123  return array();
124  }
125 
131  public function getTags()
132  {
133  return array();
134  }
135 
144  public function getIdsMatchingTags($tags = array())
145  {
146  return array();
147  }
148 
157  public function getIdsNotMatchingTags($tags = array())
158  {
159  return array();
160  }
161 
170  public function getIdsMatchingAnyTags($tags = array())
171  {
172  return array();
173  }
174 
181  public function getFillingPercentage()
182  {
183  return 0;
184  }
185 
197  public function getMetadatas($id)
198  {
199  return false;
200  }
201 
209  public function touch($id, $extraLifetime)
210  {
211  return false;
212  }
213 
228  public function getCapabilities()
229  {
230  return array(
231  'automatic_cleaning' => true,
232  'tags' => true,
233  'expired_read' => true,
234  'priority' => true,
235  'infinite_lifetime' => true,
236  'get_list' => true,
237  );
238  }
239 
247  public function ___expire($id)
248  {
249  }
250 }
getIdsNotMatchingTags($tags=array())
Definition: BlackHole.php:157
load($id, $doNotTestCacheValidity=false)
Definition: BlackHole.php:50
$id
Definition: fieldset.phtml:14
save($data, $id, $tags=array(), $specificLifetime=false)
Definition: BlackHole.php:78
touch($id, $extraLifetime)
Definition: BlackHole.php:209
if($exist=($block->getProductCollection() && $block->getProductCollection() ->getSize())) $mode
Definition: grid.phtml:15
clean($mode=Zend_Cache::CLEANING_MODE_ALL, $tags=array())
Definition: BlackHole.php:111
const CLEANING_MODE_ALL
Definition: Cache.php:72
getIdsMatchingAnyTags($tags=array())
Definition: BlackHole.php:170
getIdsMatchingTags($tags=array())
Definition: BlackHole.php:144