class Mosquito::RedisBackend
- Mosquito::RedisBackend
- Mosquito::Backend
- Reference
- Object
Extended Modules
Defined in:
mosquito/redis_backend.crConstant Summary
-
QUEUES =
["waiting", "scheduled", "pending", "dead"] of ::String
Class Method Summary
- .delete(key : String, in ttl = 0) : Nil
- .expires_in(key : String) : Int64
-
.flush : Nil
is this even a good idea?
- .get(key : String, field : String) : String | Nil
- .increment(key : String, field : String, by value : Int32) : Int64
- .increment(key : String, field : String) : Int64
- .list_queues : Array(String)
- .redis
- .retrieve(key : String) : Hash(String, String)
- .set(key : String, field : String, value : String) : String
- .store(key : String, value : Hash(String, String)) : Nil
Instance Method Summary
- #dead_q
- #dequeue : Task | Nil
- #deschedule : Array(Task)
-
#enqueue(task : Task) : Task
from queue.cr
- #finish(task : Task)
- #flush : Nil
- #pending_q
- #redis
- #schedule(task : Task, at scheduled_time : Time) : Task
- #scheduled_q
- #size(include_dead = true) : Int64
- #terminate(task : Task)
- #waiting_q
Instance methods inherited from class Mosquito::Backend
build_key(*parts)
build_key,
delete(key : String, in ttl = 0) : Nil
delete,
dequeue : Task | Nil
dequeue,
deschedule : Array(Task)
deschedule,
enqueue(task : Task) : Task
enqueue,
expires_in(key : String) : Int64
expires_in,
finish(task : Task)
finish,
flush : Nil
flush,
retrieve(key : String) : Hash(String, String)
retrieve,
schedule(task : Task, at scheduled_time : Time) : Task
schedule,
size(include_dead : Bool = true) : Int64
size,
store(key : String, value : Hash(String, String)) : Nil
store,
terminate(task : Task)
terminate
Constructor methods inherited from class Mosquito::Backend
new(name : String | Symbol)
new
Class methods inherited from class Mosquito::Backend
build_key(*parts)
build_key,
named(name)
named
Class Method Detail
Instance Method Detail
Description copied from class Mosquito::Backend
from queue.cr