Method: AtprotoAuth::Storage::Interface#acquire_lock

Defined in:
lib/atproto_auth/storage/interface.rb

#acquire_lock(key, ttl:) ⇒ Boolean

Acquire a lock

Parameters:

  • key (String)

    Lock key

  • ttl (Integer)

    Lock timeout in seconds

Returns:

  • (Boolean)

    True if lock acquired

Raises:



63
64
65
# File 'lib/atproto_auth/storage/interface.rb', line 63

def acquire_lock(key, ttl:)
  raise NotImplementedError
end