DataPower

DataPower

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  About TTL in fs module Gatewayscript

    Posted Tue May 30, 2023 01:28 AM

    Hi @Steve Linn 

    I have read in IBM docs about TTL in the fs module that "The TTL label specifies an integer in the range 0 - 86400 that defines the time-to-live in seconds for the created temporary file. The default value is 10 seconds. The TTL is optional and is only valid for the temporary: directory." but if I give more than 86400 also it is accepting and not throwing any error may I know the reason for this and if there is a possibility to store it permanently, we'll assign 0 to TTL then why it is mentioned like the range is 0-86400.

    fs module - IBM Documentation

    Thanks in Advance!!!



    ------------------------------
    Vyasavardhan Ramagiri
    ------------------------------


  • 2.  RE: About TTL in fs module Gatewayscript

    Posted Mon June 05, 2023 03:23 PM

    Hi Vyasavardhan,
    For sure a TTL value of 0 will save the file permanently.  Quite frankly, I've never tried an illegal value as a TTL but looking at the fs.js module code, it should throw a RangeError exception for < 0 and > 86400.
    Best Regards,
    Steve



    ------------------------------
    Steve Linn
    Senior Consulting I/T Specialist
    IBM
    ------------------------------



  • 3.  RE: About TTL in fs module Gatewayscript

    Posted Wed June 14, 2023 10:39 AM

    Hi Vyasavardhan,
    per Steve you might want to create a support ticket wrt range exception.

    In addition, if you do an experiment with say 100000 and the file is still alive after a bit more of a day, you can raise a ticket as well.



    ------------------------------
    Hermann Stamm-Wilbrandt
    Compiler Level 3 support & Fixpack team lead
    IBM DataPower Gateways (⬚ᵈᵃᵗᵃ / ⣏⠆⡮⡆⢹⠁⡮⡆⡯⠂⢎⠆⡧⡇⣟⡃⡿⡃)
    https://stamm-wilbrandt.de/en/blog/
    ------------------------------