This is a Libary to manage Key Value Storages and store them in a database.
- In Memory | NonPersistent
- Azure Mongo DB / CosmosDB
{
"Connections":{
"PersistentKeyValueStorage":{
"ConnectionString":"",
"Database":"dbName"
}
}
} services.AddSingleton<IPersistentKeyValueStorage, Mongo>(); Task CreateOrUpdateAsync(Model.Entry entry);
Task<string> GetValueAsync(string keyName);
Task<bool> DeleteAsync(string keyName); Creates or updates an Entry object. No return value
Returns the latest value for the specified key. Not found returns String.Empty
Returns true when delete successfull, otherwise it will return false
02-22-2021 Birthday