module Mosquito::Backend::ClassMethods

Defined in:

mosquito/backend.cr

Instance Method Summary

Instance Method Detail

abstract def delete(key : String, in ttl : Int64 = 0) : Nil #

abstract def delete(key : String, in ttl : Time::Span) : Nil #

abstract def expires_in(key : String) : Int64 #

abstract def flush : Nil #

abstract def get(key : String, field : String) : String | Nil #

abstract def increment(key : String, field : String, by value : Int32) : Int64 #

abstract def increment(key : String, field : String) : Int64 #

abstract def list_queues : Array(String) #

abstract def list_runners : Array(String) #

abstract def lock?(key : String, value : String, ttl : Time::Span) : Bool #

abstract def retrieve(key : String) : Hash(String, String) #

abstract def set(key : String, field : String, value : String) : String #

abstract def store(key : String, value : Hash(String, String)) : Nil #

abstract def unlock(key : String, value : String) : Nil #