using Connected.Entities.Caching; namespace Common.Collections; internal interface IQueueCache : IEntityCacheClient { void Update(QueueMessage message); } internal class QueueCache : EntityCacheClient, IQueueCache { public QueueCache(IEntityCacheContext context) : base(context, QueueMessage.CacheKey) { } public void Update(QueueMessage message) { Set(message.Id, message, TimeSpan.Zero); } }