Skip to content

Commit

Permalink
redis
Browse files Browse the repository at this point in the history
  • Loading branch information
gregmeszaros committed Oct 11, 2017
1 parent d813ef1 commit 6bb9d86
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions config-redis.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

if (class_exists('Redis')) {
try {
$redis = new Redis();
$connected = $redis->connect('127.0.0.1', 6379);
if (!$connected) {
return "Can't connect to REDIS";
}
} catch (Exception $e) {
return $e->getMessage();
}
}

return FALSE;

0 comments on commit 6bb9d86

Please sign in to comment.