flush-expired-apigw-documents

This command deletes expired documents from the document cache of an API gateway.

Syntax

Delete all expired documents
flush-expired-apigw-documents gateway
Delete the expired documents that match the URL pattern
flush-expired-apigw-documents gateway pattern
Delete the expired documents that match the URL pattern and the cache key
flush-expired-apigw-documents gateway pattern cache-key

Parameters

gateway
Specifies the name of the API gateway.
pattern
Specifies the shell-style regular expression that identifies documents in the document cache. The default value is *, which matches all entries.
cache-key
Specifies the exact match for the cache key to restrict the URL match to only documents with this cache key. This parameter is valid only when you include the URL-match parameter. The default value is *, which ignores the cache key.

Guidelines

The flush-expired-apigw-documents command deletes expired documents from the document cache of the cited API gateway that match a pattern. If you do not specify a pattern, the command deletes all expired documents.

To define a pattern that includes brackets, you must escape these characters with two backward slashes. For example, use \\[abc\\] to match [abc].

Examples

  • Delete all expired documents from the document cache of the apigw1 API gateway.
    # flush-expired-apigw-documents apigw1
  • Delete all expired XSD and XSL files from the document cache of the apigw1 API gateway.
    # flush-expired-apigw-documents apigw1 *xs[dl]
  • Delete all expired XSD and XSL files from the document cache of the apigw1 API gateway with the key1 cache key.
    # flush-expired-apigw-documents apigw1 *xs[dl] key1