C# Class MongoDB.Driver.Internal.IndexCache

Represents a cache of the names of indexes that are known to exist on a given server.
ファイルを表示 Open project: CloudMetal/mongo-csharp-driver

Public Methods

Method Description
Add ( MongoCollection collection, string indexName ) : void

Adds the name of an index to the cache.

Contains ( MongoCollection collection, string indexName ) : bool

Tests whether the cache contains the name of an index.

IndexCache ( ) : System.Collections.Generic

Initializes a new instance of the IndexCache class.

Remove ( MongoCollection collection, string indexName ) : void

Removes the name of an index from the cache.

Reset ( ) : void

Resets the cache.

Reset ( MongoCollection collection ) : void

Resets part of the cache by removing all indexes for a collection.

Reset ( MongoDatabase database ) : void

Resets part of the cache by removing all indexes for a database.

Reset ( string databaseName ) : void

Resets part of the cache by removing all indexes for a database.

Reset ( string databaseName, string collectionName ) : void

Resets part of the cache by removing all indexes for a collection.

Method Details

Add() public method

Adds the name of an index to the cache.
public Add ( MongoCollection collection, string indexName ) : void
collection MongoCollection The collection that contains the index.
indexName string The name of the index.
return void

Contains() public method

Tests whether the cache contains the name of an index.
public Contains ( MongoCollection collection, string indexName ) : bool
collection MongoCollection The collection that contains the index.
indexName string The name of the index.
return bool

IndexCache() public method

Initializes a new instance of the IndexCache class.
public IndexCache ( ) : System.Collections.Generic
return System.Collections.Generic

Remove() public method

Removes the name of an index from the cache.
public Remove ( MongoCollection collection, string indexName ) : void
collection MongoCollection The collection that contains the index.
indexName string The name of the index.
return void

Reset() public method

Resets the cache.
public Reset ( ) : void
return void

Reset() public method

Resets part of the cache by removing all indexes for a collection.
public Reset ( MongoCollection collection ) : void
collection MongoCollection The collection.
return void

Reset() public method

Resets part of the cache by removing all indexes for a database.
public Reset ( MongoDatabase database ) : void
database MongoDatabase The database.
return void

Reset() public method

Resets part of the cache by removing all indexes for a database.
public Reset ( string databaseName ) : void
databaseName string The name of the database.
return void

Reset() public method

Resets part of the cache by removing all indexes for a collection.
public Reset ( string databaseName, string collectionName ) : void
databaseName string The name of the database containing the collection.
collectionName string The name of the collection.
return void