mirror of https://github.com/IoTcat/ushio-chat.git
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.
14 lines
179 B
14 lines
179 B
3 years ago
|
<?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;
|