Code Duplication    Length = 5-5 lines in 2 locations

src/Drivers/DBDriverAbstract.php 2 locations

@@ 241-245 (lines=5) @@
238
	public function rawCached(string $sql, string $index = null, bool $assoc = true, int $ttl = null){
239
		$result = $this->cacheGet($sql, [], $index);
240
241
		if(!$result){
242
			$result = $this->raw($sql, $index, $assoc);
243
244
			$this->cacheSet($sql, [], $index, $result, $ttl);
245
		}
246
247
		return $result;
248
	}
@@ 262-266 (lines=5) @@
259
	public function preparedCached(string $sql, array $values = [], string $index = null, bool $assoc = true, int $ttl = null){
260
		$result = $this->cacheGet($sql, $values, $index);
261
262
		if(!$result){
263
			$result = $this->prepared($sql, $values, $index, $assoc);
264
265
			$this->cacheSet($sql, $values, $index, $result, $ttl);
266
		}
267
268
		return $result;
269
	}