Skip to content

Instantly share code, notes, and snippets.

@0x46616c6b
Created September 9, 2013 13:45
Show Gist options
  • Save 0x46616c6b/6495774 to your computer and use it in GitHub Desktop.
Save 0x46616c6b/6495774 to your computer and use it in GitHub Desktop.
<?php
require __DIR__ . '/vendor/autoload.php';
$db = new PDO('sqlite:sqlite.db');
$redis = new Predis\Client();
foreach ($db->query("SELECT * FROM store") as $row) {
$redis->set($row['key'], $row['value']);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment