Method: LockManager#initialize

Defined in:
app/services/lock_manager.rb

#initialize(type:, id:, expire:, wait: true) ⇒ LockManager

Returns a new instance of LockManager.



8
9
10
11
12
# File 'app/services/lock_manager.rb', line 8

def initialize(type:, id:, expire:, wait: true)
  @key = "#{KEY_PREFIX}-#{type}-#{id}"
  @expire = expire
  @wait = wait
end