module RedisMutex

Overview

Distributed mutex on top of Redis

Defined in:

redis_mutex.cr
redis_mutex/time_parser.cr
redis_mutex/version.cr

Constant Summary

MAX_LOCKING_TIME = 2.seconds

Time wait until assuming deadlock and ignoring the lock

VERSION = "0.3.0"

Class Method Summary

Class Method Detail

def self.run(*args, **kwargs, &block) #

Creates a new instance of Redis::Mutex and executes the given block with a distributed mutex on top of Redis


[View source]