Couchbase .NET SDK __CB_SDK_VERSION__

Show / Hide Table of Contents

Interface IQueryCacheInvalidator

Provides a method signature for invalidating and clearing a cache.

Namespace: Couchbase.Query
Assembly: Couchbase.NetClient.dll
Syntax
public interface IQueryCacheInvalidator

Methods

View Source

InvalidateQueryCache()

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.

Declaration
int InvalidateQueryCache()
Returns
Type Description
int

An int representing the size of the cache before it was cleared.

  • View Source
In this article
Back to top Copyright © 2020 Couchbase, Inc. All rights reserved.