1- <?php namespace CodeIgniter \Cache \Handlers ;
1+ <?php
2+ namespace CodeIgniter \Cache \Handlers ;
23
34/**
45 * CodeIgniter
3839
3940use CodeIgniter \Cache \CacheInterface ;
4041
42+ /**
43+ * Cache handler for WinCache from Microsoft & IIS.
44+ * Windows-only, so not testable on travis-ci.
45+ * Unusable methods flagged for code coverage ignoring.
46+ */
4147class WincacheHandler implements CacheInterface
4248{
4349
@@ -59,6 +65,8 @@ public function __construct($config)
5965
6066 /**
6167 * Takes care of any handler-specific setup that must be done.
68+ *
69+ * @codeCoverageIgnore
6270 */
6371 public function initialize ()
6472 {
@@ -70,6 +78,8 @@ public function initialize()
7078 /**
7179 * Attempts to fetch an item from the cache store.
7280 *
81+ * @codeCoverageIgnore
82+ *
7383 * @param string $key Cache item name
7484 *
7585 * @return mixed
@@ -90,6 +100,8 @@ public function get(string $key)
90100 /**
91101 * Saves an item to the cache store.
92102 *
103+ * @codeCoverageIgnore
104+ *
93105 * @param string $key Cache item name
94106 * @param mixed $value The data to save
95107 * @param integer $ttl Time To Live, in seconds (default 60)
@@ -108,6 +120,8 @@ public function save(string $key, $value, int $ttl = 60)
108120 /**
109121 * Deletes a specific item from the cache store.
110122 *
123+ * @codeCoverageIgnore
124+ *
111125 * @param string $key Cache item name
112126 *
113127 * @return mixed
@@ -124,8 +138,9 @@ public function delete(string $key)
124138 /**
125139 * Performs atomic incrementation of a raw stored value.
126140 *
127- * @param string $key Cache ID
128- * @param integer $offset Step/value to increase by
141+ * @codeCoverageIgnore
142+ * @param string $key Cache ID
143+ * @param integer $offset Step/value to increase by
129144 *
130145 * @return mixed
131146 */
@@ -144,6 +159,8 @@ public function increment(string $key, int $offset = 1)
144159 /**
145160 * Performs atomic decrementation of a raw stored value.
146161 *
162+ * @codeCoverageIgnore
163+ *
147164 * @param string $key Cache ID
148165 * @param integer $offset Step/value to increase by
149166 *
@@ -164,6 +181,8 @@ public function decrement(string $key, int $offset = 1)
164181 /**
165182 * Will delete all items in the entire cache.
166183 *
184+ * @codeCoverageIgnore
185+ *
167186 * @return mixed
168187 */
169188 public function clean ()
@@ -176,6 +195,8 @@ public function clean()
176195 /**
177196 * Returns information on the entire cache.
178197 *
198+ * @codeCoverageIgnore
199+ *
179200 * The information returned and the structure of the data
180201 * varies depending on the handler.
181202 *
@@ -191,7 +212,8 @@ public function getCacheInfo()
191212 /**
192213 * Returns detailed information about the specific item in the cache.
193214 *
194- * @param string $key Cache item name.
215+ * @codeCoverageIgnore
216+ * @param string $key Cache item name.
195217 *
196218 * @return mixed
197219 */
0 commit comments