PROXY:shared_table_entry_count(table_name)
Returns the current count of entries in a shared table. Returns -1 if the table does not exist.
Syntax
PROXY:shared_table_entry_count(table_name);
Arguments
| Name | Description |
|---|---|
| table_name |
A Lua string as the name of the shared table. This is the unique identification of a shared table. This parameter is mandatory. The maximum length of this table name is 255. |
Events
All events except: PERSISTENCE, POST_PERSIST, CLIENTSSL_HANDSHAKE.
Example
when HTTP_REQUEST {
table_name = "TableDemo1"
ret = PROXY:shared_table_entry_count(table_name)
debug("===>>shared_table_entry_count: [%s]=[%d]\n", table_name, ret)
}
Supported Version
FortiADC version 7.4.2 and later.