C# Class MongoDB.Driver.Internal.IndexCache

Represents a cache of the names of indexes that are known to exist on a given server.
Afficher le fichier Open project: CloudMetal/mongo-csharp-driver

Méthodes publiques

Méthode 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 méthode

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.
Résultat void

Contains() public méthode

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.
Résultat bool

IndexCache() public méthode

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

Remove() public méthode

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.
Résultat void

Reset() public méthode

Resets the cache.
public Reset ( ) : void
Résultat void

Reset() public méthode

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

Reset() public méthode

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

Reset() public méthode

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

Reset() public méthode

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.
Résultat void