Represents a thread-safe accessor for a cache, which provides a read-only indexer to access values. An instance can be created by the Create methods of the ThreadSafeCacheFactory class, or if you have a CacheTKey, TValue instance, you can retrieve a thread-safe accessor for it by the GetThreadSafeAccessor method.
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 6.0.0
public interface IThreadSafeCacheAccessor<in TKey, out TValue>
Public Interface IThreadSafeCacheAccessor(Of In TKey, Out TValue)
generic<typename TKey, typename TValue> public interface class IThreadSafeCacheAccessor
type IThreadSafeCacheAccessor<'TKey, 'TValue> = interface end
- The type of the key in the cache.
- The type of the value in the cache.
Thetype exposes the following members.
Gets the value associated with the specified key. If a value does not exist in the underlying cache, then the loader delegate will be invoked, which was specified when this instance was created.