Skip to content

Conversation

@hermitdave
Copy link
Contributor

Expose a way to request item from in-memory cache.

Possible solution for #910

return item as StorageFile;
}

/// <summary>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would add that if one doesn't exist, we will return the default instance of this type.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks

@IbraheemOsama
Copy link
Member

LGTM but I've another note not related to the PR, should we mention that any function access _inMemoryFileStorage to be not thread safe ?
Because I was thinking of concurrent download scenario and save or read at same time what would happen !

@hermitdave
Copy link
Contributor Author

@IbraheemOsama I'm going to replace all dictionaries with concurrent ones

@IbraheemOsama IbraheemOsama merged commit 68f8729 into dev Feb 12, 2017
@hermitdave hermitdave deleted the Cache-MemStoreLookup branch February 13, 2017 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants