Open topic with navigation

TIBCO ActiveSpaces® 4.8.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® C API Reference or TIBCO ActiveSpaces® Java API Reference.

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