Add clear method in Queue setting

parent 6b8a4a3a
......@@ -227,6 +227,10 @@ class QueueSetting(object):
cnx = self._cnx()
cnx.rpush(self._name,value)
def clear(self):
cnx = self._cnx()
cnx.delete(self._name)
@write_decorator
def prepend(self,value) :
cnx = self._cnx()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment