You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

13 lines
179 B

<?php
$redis = new redis();
$redis->connect('redis',6379);
$id = $_GET['id'];
if(!isset($id)) die();
$s = 'chat/'.$id;
if($redis->get($s)) echo $redis->get($s);
else echo 0;