Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8460047
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T13:29:56+00:00 2026-06-10T13:29:56+00:00

I have a series of scripts that move elements between Redis Sets. Sometimes these

  • 0

I have a series of scripts that move elements between Redis Sets. Sometimes these operations need to be atomic. Sometimes one script will fail but others will continue working.

I’m curious what will happen if in one script I run MULTI and start but then the script somehow fails and I never call EXEC or DISCARD – I know that my data integrity is fine because the transaction will never occur, but since the commands are queued somewhere and never executed I’m concerned that if this happens too often (it shouldn’t, but who knows?) I need to clean the queue?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T13:29:57+00:00Added an answer on June 10, 2026 at 1:29 pm

    Depends on the exact meaning of ‘Script fails’

    If the connection to redis server is lost, then the query buffer will be freed.

    If the connection to redis server is still active, and other sections of your code do not use it at all, then the query buffer will continue to occupy memory on the server. By default, idle client connections are not terminated. If you have specified a timeout in your redis.conf, the query buffer will eventually be reclaimed.

    If the connection to the redis server is still active, and another module/function/block in your script reuses the connection, things get more interesting. Any commands they execute will be queued on the server, because they are part of the previous multi block. If this module starts another multi, redis server will respond with “(error) ERR MULTI calls can not be nested”, but the query buffer is NOT cleared. How your application will behave will depend largely on the redis driver you are using.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a series of scripts that are used when building Apache. Specifically these
I have a series of files that I need to 'cat' whenever a one
I have a series of PHP scripts that I want to run in a
I have a series of blackbox tests made from shell scripts (Similar to that
I need to move a series of tables from one datasource to another. Our
I have a perl script that runs a series of batch scripts for regression
I have a series of jobs which need to be done; no dependencies between
I have some script that is delivering a series of rows from an SQL
I have a php script that echoes a series of uploaded images and I
I have a Python script that manages a series of CasperJS tasks and processes

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.