Skip to content

Commit

Permalink
Bigger doughhhhhhh
Browse files Browse the repository at this point in the history
  • Loading branch information
J0sh0nat0r committed Oct 18, 2017
1 parent f10fa2d commit 00c68f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Drivers/SQLite.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ public function __construct($options)

public function put($key, $value, $time)
{
$time += time();

if ($this->has($key)) {
$this->remove($key);
}

$time = $time > 0 ? $time + time() : $time;

$stmt = $this->db->prepare("INSERT INTO \"$this->table_name\" VALUES (?, ?, ?)");

$stmt->bindParam(1, $key, SQLITE3_TEXT);
Expand Down

0 comments on commit 00c68f0

Please # to comment.