Method PersistKeysToNCache
PersistKeysToNCache(IDataProtectionBuilder, String, String)
This method initializes NCacheXmlRepository to store Data Protection encryption keys.
Declaration
public static IDataProtectionBuilder PersistKeysToNCache(this IDataProtectionBuilder builder, string cacheName, string cacheTag)
Parameters
| Type | Name | Description |
|---|---|---|
| IDataProtectionBuilder | builder | The Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder. |
| System.String | cacheName | The name of the cache for storing encryption keys. |
| System.String | cacheTag | The name of the tag against which the keys are to be stored. |
Returns
| Type | Description |
|---|---|
| IDataProtectionBuilder | A reference to the Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder after this operation has completed. |