A scanning manager (101) dynamically resizes (205) a flow scanning cache
(109) based on signature (105) content in order to scan a flow (103) for
signatures (105). The scanning manager (101) reads a directive (107) in a
signature (105) to resize (205) the cache (109) in order to scan the flow
(103) for the signature (105). The scanning manager (101) dynamically
resizes (205) the cache (109) responsive to the directive (107), and
scans for the signature (105) within the resized cache (109).