Log in Sign up
2 Matching Annotations
  1. Feb 2023
  2. github.com github.com
    einzige/redis-locker: Destroys the concurrency of your ruby code using Redis.
    1
    1. TylerRick 21 Feb 2023
      in Public

      prefer https://github.com/leandromoreira/redlock-rb over this

      built in/on/with: Redis synchronization locking (computing) locks (computing)
    Visit annotations in context

    Tags

    • Redis
    • locks (computing)
    • built in/on/with:
    • locking (computing)
    • synchronization

    Annotators

    • TylerRick

    URL

    github.com/einzige/redis-locker
  3. guides.rubyonrails.org guides.rubyonrails.org
    Active Record Query Interface — Ruby on Rails Guides
    1
    1. TylerRick 20 Feb 2023
      in Public
      If you already have an instance of your model, you can start a transaction and acquire the lock in one go using the following code: book = Book.first book.with_lock do # This block is called within a transaction, # book is already locked. book.increment!(:views) end
      synchronization locks (computing) database transactions helper functions
    Visit annotations in context

    Tags

    • helper functions
    • locks (computing)
    • database transactions
    • synchronization

    Annotators

    • TylerRick

    URL

    guides.rubyonrails.org/active_record_querying.html
Share:
Group. Only group members will be able to view this annotation.
Only me. No one else will be able to view this annotation.
Hypothes.is
  • About
  • Blog
  • Bioscience
  • Education
  • Jobs
  • Help
  • Contact
  • Terms of Service
  • Privacy Policy