 | IQueryCacheInvalidatorInvalidateQueryCache Method |
Invalidates and clears the query cache. This method can be used to explicitly clear the internal N1QL query cache. This cache will
be filled with non-adhoc query statements (query plans) to speed up those subsequent executions. Triggering this method will wipe
out the complete cache, which will not cause an interruption but rather all queries need to be re-prepared internally. This method
is likely to be deprecated in the future once the server side query engine distributes its state throughout the cluster.
Namespace:
Couchbase.Query
Assembly:
Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 3.0.0-local-202004010202+047adc0837bfc29c0b8cce4322194a09afd8ea18
Syntaxint InvalidateQueryCache()
Return Value
Type:
Int32An
Int32 representing the size of the cache before it was cleared.
See Also