Techniques are described herein that may be used to invalidate all entries
in a table. For example, the table may be a flow cache. For example, an
expiry time may be associated with one or more entries in the table. The
expiry time of an entry may be initially set to the sum of the system
time, the expiry time of the protocol associated with the entry, and a
global time variable. To check if the entry is expired at any time, the
current system time may be added to the global time variable and if the
result is greater than the expiry time in the entry, then the entry is
expired. To invalidate all the entries, the global time variable may be
incremented by a large amount which may equal the maximum expiry time of
all protocols. This may cause all entries to expire. New entries may be
added using the new incremented value of the global time variable and
will hence not expire.