Skip to content

Instantly share code, notes, and snippets.

View raphaelstolt's full-sized avatar
:octocat:
Focusing.

Raphael Stolt raphaelstolt

:octocat:
Focusing.
View GitHub Profile
@raphaelstolt
raphaelstolt / redis-glue-test.php
Created May 15, 2010 04:45
Redis installation test script
<?php
define('TEST_KEY', 'are_we_glued');
$redis = new Redis();
try {
$redis->connect('localhost', 6379);
$redis->set(TEST_KEY, 'yes');
$glueStatus = $redis->get(TEST_KEY);
if ($glueStatus) {
$testKey = TEST_KEY;
echo "Glued with the Redis key value store:" . PHP_EOL;