View Source
Class SnapDictionary<TKey, TValue>
Inheritance
System.Object
Assembly: Umbraco.PublishedCache.NuCache.dll
Syntax
public class SnapDictionary<TKey, TValue>
where TValue : class
Type Parameters
Name |
Description |
TKey |
|
TValue |
|
Constructors
View Source
SnapDictionary()
Declaration
Properties
View Source
Count
Declaration
public int Count { get; }
Property Value
Type |
Description |
System.Int32 |
|
View Source
GenCount
Declaration
public long GenCount { get; }
Property Value
Type |
Description |
System.Int64 |
|
View Source
SnapCount
Declaration
public long SnapCount { get; }
Property Value
Type |
Description |
System.Int64 |
|
Methods
View Source
ClearLocked()
Declaration
public void ClearLocked()
View Source
ClearLocked(TKey)
Declaration
public void ClearLocked(TKey key)
Parameters
Type |
Name |
Description |
TKey |
key |
|
View Source
CollectAsync()
Declaration
public Task CollectAsync()
Returns
View Source
CreateSnapshot()
Declaration
public SnapDictionary<TKey, TValue>.Snapshot CreateSnapshot()
Returns
View Source
Get(TKey, Int64)
Declaration
public TValue Get(TKey key, long gen)
Parameters
Type |
Name |
Description |
TKey |
key |
|
System.Int64 |
gen |
|
Returns
View Source
GetAll(Int64)
Declaration
public IEnumerable<TValue> GetAll(long gen)
Parameters
Type |
Name |
Description |
System.Int64 |
gen |
|
Returns
Type |
Description |
IEnumerable<TValue> |
|
View Source
GetScopedWriteLock(ICoreScopeProvider)
Declaration
public IDisposable? GetScopedWriteLock(ICoreScopeProvider scopeProvider)
Parameters
Type |
Name |
Description |
ICoreScopeProvider |
scopeProvider |
|
Returns
Type |
Description |
System.Nullable<IDisposable> |
|
View Source
IsEmpty(Int64)
Declaration
public bool IsEmpty(long gen)
Parameters
Type |
Name |
Description |
System.Int64 |
gen |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
SetLocked(TKey, TValue)
Declaration
public void SetLocked(TKey key, TValue value)
Parameters
Type |
Name |
Description |
TKey |
key |
|
TValue |
value |
|