Class: Dionysus::Utils::NullLockClient
- Inherits:
-
Object
- Object
- Dionysus::Utils::NullLockClient
- Defined in:
- lib/dionysus/utils/null_lock_client.rb
Class Method Summary collapse
Class Method Details
.lock(resource_key, expiration_time) {|payload| ... } ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/dionysus/utils/null_lock_client.rb', line 4 def self.lock(resource_key, expiration_time) payload = { validity: expiration_time, resource: resource_key, value: "null_lock_client_lock" } yield payload end |