Class CacheBuilder<K, V>
Inheritance
CacheBuilder<K, V>
Assembly: LaunchDarkly.Cache.dll
Syntax
public class CacheBuilder<K, V> : CacheBuilderBase<CacheBuilder<K, V>>
Type Parameters
Constructors
CacheBuilder()
Declaration
Methods
Build()
Declaration
public ICache<K, V> Build()
Returns
WithInitialCapacity(int?)
Declaration
public CacheBuilder<K, V> WithInitialCapacity(int? initialCapacity)
Parameters
Type |
Name |
Description |
int? |
initialCapacity |
|
Returns
WithLoader(Func<K, V>)
Declaration
public CacheBuilder<K, V> WithLoader(Func<K, V> loaderFn)
Parameters
Type |
Name |
Description |
Func<K, V> |
loaderFn |
|
Returns
WithMaximumEntries(int?)
Declaration
public CacheBuilder<K, V> WithMaximumEntries(int? maximumEntries)
Parameters
Type |
Name |
Description |
int? |
maximumEntries |
|
Returns