Sha256: 1e43b6f2af71a15b5f0560a2f7394aaecbb7d79b78ab16bbb86b03d727be5e39
Contents?: true
Size: 476 Bytes
Versions: 1
Compression:
Stored size: 476 Bytes
Contents
class RedisLock class Strategy attr_reader :lock, :args def initialize(lock, args = {}) @lock = lock @args = args end def call(&block) raise NotImplementedError end def after_perform end private def _perform(&block) yield lock rescue => e lock.config.logger.error "[#{self.class}] key: `#{key}` error:" lock.config.logger.error e raise e ensure after_perform end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
redis_lock-0.4.2 | lib/redis_lock/strategy.rb |