src/AdbackAnalytics/Driver/MysqliScriptCache.php 1 location
|
@@ 240-246 (lines=7) @@
|
| 237 |
|
* @param string $key |
| 238 |
|
* @param string $value |
| 239 |
|
*/ |
| 240 |
|
protected function set($key, $value) |
| 241 |
|
{ |
| 242 |
|
$this->clear($key); |
| 243 |
|
$request = $this->connection->prepare("INSERT INTO adback_cache_table (our_key, our_value) VALUES (?, ?)"); |
| 244 |
|
$request->bind_param('ss', $key, $value); |
| 245 |
|
$request->execute(); |
| 246 |
|
} |
| 247 |
|
|
| 248 |
|
/** |
| 249 |
|
* @param string $key |
src/AdbackAnalytics/Driver/PdoScriptCache.php 1 location
|
@@ 242-250 (lines=9) @@
|
| 239 |
|
* @param string $key |
| 240 |
|
* @param string $value |
| 241 |
|
*/ |
| 242 |
|
protected function set($key, $value) |
| 243 |
|
{ |
| 244 |
|
$this->clear($key); |
| 245 |
|
$request = $this->connection->prepare("INSERT INTO adback_cache_table (our_key, our_value) VALUES (:key, :value)"); |
| 246 |
|
$request->execute([ |
| 247 |
|
'key' => $key, |
| 248 |
|
'value' => $value, |
| 249 |
|
]); |
| 250 |
|
} |
| 251 |
|
|
| 252 |
|
/** |
| 253 |
|
* @param string $key |