C# Класс FoundationDB.Storage.Memory.API.MemoryDatabase

In-memory database instance
Наследование: FdbDatabase
Показать файл Открыть проект

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

Метод Описание
BulkLoadAsync ( Slice>.IEnumerable data, bool ordered = false, CancellationToken cancellationToken = default(CancellationToken) ) : Task

Replace the content of the database with existing data.

Any pre-existing data will be removed!

Collect ( ) : void

Trigger a garbage collection of the memory database

If the amount of memory that can be collected is too small, this operation will do nothing.

CreateNew ( ) : MemoryDatabase
CreateNew ( string name ) : MemoryDatabase
CreateNew ( string name, FdbSubspace globalSpace, bool readOnly ) : MemoryDatabase
LoadFromAsync ( string path, CancellationToken cancellationToken ) : Task
SaveSnapshotAsync ( string path, FoundationDB.Storage.Memory.API.MemorySnapshotOptions options = null, CancellationToken cancellationToken = default(CancellationToken) ) : Task

Приватные методы

Метод Описание
Debug_Dump ( bool detailed = false ) : void
MemoryDatabase ( IFdbCluster cluster, MemoryDatabaseHandler handler, string name, FdbSubspace globalSpace, IFdbDirectory directory, bool readOnly, bool ownsCluster ) : FoundationDB.Client

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

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

Replace the content of the database with existing data.
Any pre-existing data will be removed!
public BulkLoadAsync ( Slice>.IEnumerable data, bool ordered = false, CancellationToken cancellationToken = default(CancellationToken) ) : Task
data Slice>.IEnumerable Data that will replace the content of the database. The elements do not need to be sorted, but best performance is achieved if all the keys are lexicographically ordered (smallest to largest)
ordered bool
cancellationToken System.Threading.CancellationToken Optionnal cancellation token
Результат Task

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

Trigger a garbage collection of the memory database
If the amount of memory that can be collected is too small, this operation will do nothing.
public Collect ( ) : void
Результат void

CreateNew() публичный статический Метод

public static CreateNew ( ) : MemoryDatabase
Результат MemoryDatabase

CreateNew() публичный статический Метод

public static CreateNew ( string name ) : MemoryDatabase
name string
Результат MemoryDatabase

CreateNew() публичный статический Метод

public static CreateNew ( string name, FdbSubspace globalSpace, bool readOnly ) : MemoryDatabase
name string
globalSpace FdbSubspace
readOnly bool
Результат MemoryDatabase

LoadFromAsync() публичный статический Метод

public static LoadFromAsync ( string path, CancellationToken cancellationToken ) : Task
path string
cancellationToken System.Threading.CancellationToken
Результат Task

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

public SaveSnapshotAsync ( string path, FoundationDB.Storage.Memory.API.MemorySnapshotOptions options = null, CancellationToken cancellationToken = default(CancellationToken) ) : Task
path string
options FoundationDB.Storage.Memory.API.MemorySnapshotOptions
cancellationToken System.Threading.CancellationToken
Результат Task