C# Класс MongoDB.Driver.Internal.IndexCache

Represents a cache of the names of indexes that are known to exist on a given server.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

Add() публичный Метод

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.
Результат void

Contains() публичный Метод

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.
Результат bool

IndexCache() публичный Метод

Initializes a new instance of the IndexCache class.
public IndexCache ( ) : System.Collections.Generic
Результат System.Collections.Generic

Remove() публичный Метод

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.
Результат void

Reset() публичный Метод

Resets the cache.
public Reset ( ) : void
Результат void

Reset() публичный Метод

Resets part of the cache by removing all indexes for a collection.
public Reset ( MongoCollection collection ) : void
collection MongoCollection The collection.
Результат void

Reset() публичный Метод

Resets part of the cache by removing all indexes for a database.
public Reset ( MongoDatabase database ) : void
database MongoDatabase The database.
Результат void

Reset() публичный Метод

Resets part of the cache by removing all indexes for a database.
public Reset ( string databaseName ) : void
databaseName string The name of the database.
Результат void

Reset() публичный Метод

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.
Результат void