Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

another README.md update

  • Loading branch information...
commit 5c234527834b4a28971b32259c295f66f5915094 1 parent 16871ea
@romand romand authored
Showing with 27 additions and 1 deletion.
  1. +27 −1 README.md
View
28 README.md
@@ -40,7 +40,14 @@ ironmq = IronMQ(host="mq-aws-us-east-1.iron.io",
## The Basics
-At first, we get queue by name:
+### Listing queues
+
+```python
+ironmq.queues()
+```
+returns list of queues names
+
+we get queue by name:
```python
queue = ironmq.queue("test_queue")
```
@@ -81,6 +88,25 @@ queue.delete(message_id)
```
Delete a message from the queue when you're done with it.
+### ***Clear*** a queue:
+```python
+queue.clear()
+```
+
+### Get queue ***size***, ***id***, ***total_messages*** and whole ***info***
+```python
+queue.info()
+ # {u'id': u'502d03d3211a8f5e7742d224',
+ # u'name': u'queue12',
+ # u'reserved': 0,
+ # u'size': 15,
+ # u'total_messages': 17}
+queue.size() # 15
+queue.name
+queue.total_messages() # 17
+queue.id() # u'502d03d3211a8f5e7742d224'
+```
+
# Full Documentation
You can find more documentation here:
Please sign in to comment.
Something went wrong with that request. Please try again.