Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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));
        }