MemoryDistributedCache Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
MemoryDistributedCache(IOptions<MemoryDistributedCacheOptions>) |
Creates a new MemoryDistributedCache instance. |
MemoryDistributedCache(IOptions<MemoryDistributedCacheOptions>, ILoggerFactory) |
Creates a new MemoryDistributedCache instance. |
MemoryDistributedCache(IOptions<MemoryDistributedCacheOptions>)
- Source:
- MemoryDistributedCache.cs
- Source:
- MemoryDistributedCache.cs
- Source:
- MemoryDistributedCache.cs
- Source:
- MemoryDistributedCache.cs
Creates a new MemoryDistributedCache instance.
public:
MemoryDistributedCache(Microsoft::Extensions::Options::IOptions<Microsoft::Extensions::Caching::Memory::MemoryDistributedCacheOptions ^> ^ optionsAccessor);
public MemoryDistributedCache (Microsoft.Extensions.Options.IOptions<Microsoft.Extensions.Caching.Memory.MemoryDistributedCacheOptions> optionsAccessor);
new Microsoft.Extensions.Caching.Distributed.MemoryDistributedCache : Microsoft.Extensions.Options.IOptions<Microsoft.Extensions.Caching.Memory.MemoryDistributedCacheOptions> -> Microsoft.Extensions.Caching.Distributed.MemoryDistributedCache
Public Sub New (optionsAccessor As IOptions(Of MemoryDistributedCacheOptions))
Parameters
- optionsAccessor
- IOptions<MemoryDistributedCacheOptions>
The options of the cache.
Applies to
MemoryDistributedCache(IOptions<MemoryDistributedCacheOptions>, ILoggerFactory)
- Source:
- MemoryDistributedCache.cs
- Source:
- MemoryDistributedCache.cs
- Source:
- MemoryDistributedCache.cs
- Source:
- MemoryDistributedCache.cs
Creates a new MemoryDistributedCache instance.
public:
MemoryDistributedCache(Microsoft::Extensions::Options::IOptions<Microsoft::Extensions::Caching::Memory::MemoryDistributedCacheOptions ^> ^ optionsAccessor, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public MemoryDistributedCache (Microsoft.Extensions.Options.IOptions<Microsoft.Extensions.Caching.Memory.MemoryDistributedCacheOptions> optionsAccessor, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
new Microsoft.Extensions.Caching.Distributed.MemoryDistributedCache : Microsoft.Extensions.Options.IOptions<Microsoft.Extensions.Caching.Memory.MemoryDistributedCacheOptions> * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.Extensions.Caching.Distributed.MemoryDistributedCache
Public Sub New (optionsAccessor As IOptions(Of MemoryDistributedCacheOptions), loggerFactory As ILoggerFactory)
Parameters
- optionsAccessor
- IOptions<MemoryDistributedCacheOptions>
The options of the cache.
- loggerFactory
- ILoggerFactory
The logger factory to create ILogger used to log messages.
Applies to
שתף איתנו פעולה ב- GitHub
ניתן למצוא את המקור לתוכן זה ב- GitHub, שם ניתן גם ליצור ולסקור בעיות ולמשוך בקשות. לקבלת מידע נוסף, עיין במדריך התורמים שלנו.
משוב
https://aka.ms/ContentUserFeedback.
בקרוב: במהלך 2024, נפתור בעיות GitHub כמנגנון המשוב לתוכן ונחליף אותו במערכת משוב חדשה. לקבלת מידע נוסף, ראה:שלח והצג משוב עבור