Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
my-yaf-project
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenchuanwen
my-yaf-project
Commits
981153dc
Commit
981153dc
authored
Jan 02, 2019
by
chenchuanwen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pc
parent
2f520aea
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
redisPublish.php
public/redisPublish.php
+1
-1
redisSubscribe.php
scripts/crontab/push/redisSubscribe.php
+2
-1
No files found.
public/redisPublish.php
View file @
981153dc
...
...
@@ -3,4 +3,4 @@
$redis
=
new
Redis
();
$redis
->
connect
(
'192.168.1.201'
,
6379
);
$message
=
'happy New Year'
;
$ret
=
$redis
->
publish
(
'
pushcenter
'
,
$message
);
$ret
=
$redis
->
publish
(
'
redisPublish
'
,
$message
);
scripts/crontab/push/redisSubscribe.php
View file @
981153dc
...
...
@@ -24,5 +24,6 @@ function printTest($meg){
echo
$meg
.
'213'
;
}
function
callback
(
$instance
,
$channelName
,
$message
){
printTest
(
$message
);
$instance
->
unsubscribe
(
array
(
$channelName
));
//printTest($message);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment