@@ 260-267 (lines=8) @@ | ||
257 | * |
|
258 | * @return bool|mixed |
|
259 | */ |
|
260 | protected function cacheGet(string $sql, array $values = [], string $index = null){ |
|
261 | ||
262 | if($this->cacheDriver){ |
|
263 | return $this->cacheDriver->get($this->cacheKey($sql, $values, $index)); |
|
264 | } |
|
265 | ||
266 | return false; // @codeCoverageIgnore |
|
267 | } |
|
268 | ||
269 | /** |
|
270 | * @param string $sql |
|
@@ 278-285 (lines=8) @@ | ||
275 | * |
|
276 | * @return bool |
|
277 | */ |
|
278 | protected function cacheSet(string $sql, array $values = [], string $index = null, $response, int $ttl = null):bool{ |
|
279 | ||
280 | if($this->cacheDriver){ |
|
281 | return $this->cacheDriver->set($this->cacheKey($sql, $values, $index), $response, $ttl); |
|
282 | } |
|
283 | ||
284 | return false; // @codeCoverageIgnore |
|
285 | } |
|
286 | ||
287 | ||
288 | /** |