forked from tornadoweb/tornado
-
Notifications
You must be signed in to change notification settings - Fork 98
/
README
22 lines (15 loc) · 724 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Test basic redis functionality
Set: curl -D - -d "value=hello world" http://localhost:8888/text/foobar
Get: curl -D - http://localhost:8888/text/foobar
Test redis pubsub feature (redis 2.x)
Subscribe to channels or patterns:
curl -D - http://localhost:8888/queue/foo.*,msgs,l33t
Send messages to channels:
curl -D - -d "message=hello world" http://localhost:8888/queue/foo.bar
curl -D - -d "message=yes, we can" http://localhost:8888/queue/l33t
NOTE
----
1. It is recommned not to use numeric channel names. The QueueHandler will
get the channel as integer while at other places it would be string.
If you still want to use numeric channel name, make sure you cast the
name to str to avoid any issues.