Open topic with navigation

TIBCO ActiveSpaces® - Enterprise Edition 5.0.0

# Overriding the Default TTL for a Single Row

When row expiration has been enabled for a table, developers can use the client APIs to override the default TTL set on a table.

Before performing the `PUT` operation on a row to insert it into a table, use the following code snippet to specify the TTL:

    tibdgRow_SetTTL(row, <time_interval in seconds>);
    tibdgTable_Put(table, row);

For example, if you want the row to expire after an hour, use the following code snippet:

    tibdgRow_SetTTL(row, 3600);
    tibdgTable_Put(table, row);

If you do not want the row to expire, set the TTL of the row to a very large value. For example, 10 years.

For more information on the APIs used to override the TTL at the row level, see TIBCO ActiveSpaces® - Enterprise Edition C API Reference or TIBCO ActiveSpaces® - Enterprise Edition Java API Reference.

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO ActiveSpaces® - Enterprise Edition

Copyright © 2009-2025. Cloud Software Group, Inc. All Rights Reserved.