public async Task SetTags(ObjectId roomId, RoomsDB_TagDTO[] newValue) { await _redisCache.Del($"Room:{roomId}"); _internalByIdCache.Remove(roomId); _internalByDomainCache = new Dictionary <string, ObjectId?>(); await RoomWorker.SetProperty(roomId, "Tags", newValue); }
public async Task <bool> SetProperty(ObjectId roomId, string propertyName, object newPropertyValue) { await _redisCache.Del($"Room:{roomId}"); _internalByIdCache.Remove(roomId); _internalByDomainCache = new Dictionary <string, ObjectId?>(); return(await RoomWorker.SetProperty(roomId, propertyName, newPropertyValue)); }