Code Duplication    Length = 8-8 lines in 2 locations

src/Drivers/DBDriverAbstract.php 2 locations

@@ 202-209 (lines=8) @@
199
	 *
200
	 * @return bool|mixed
201
	 */
202
	protected function cacheGet(string $sql, array $values = [], string $index = null){
203
204
		if($this->cacheDriver){
205
			return $this->cacheDriver->get($this->cacheKey($sql, $values, $index));
206
		}
207
208
		return false; // @codeCoverageIgnore
209
	}
210
211
	/**
212
	 * @param string      $sql
@@ 220-227 (lines=8) @@
217
	 *
218
	 * @return bool
219
	 */
220
	protected function cacheSet(string $sql, array $values = [], string $index = null, $response, int $ttl = null):bool{
221
222
		if($this->cacheDriver){
223
			return $this->cacheDriver->set($this->cacheKey($sql, $values, $index), $response, $ttl);
224
		}
225
226
		return false; // @codeCoverageIgnore
227
	}
228
229
230
	/**