Caching a binary file in C#

后端 未结 5 436
猫巷女王i
猫巷女王i 2021-01-02 22:07

Is it possible to cache a binary file in .NET and do normal file operations on cached file?

5条回答
  •  渐次进展
    2021-01-02 22:47

    I don't know what exactly you're doing, but I offer this suggestion (which may or may not be viable depending on what you're doing):

    Instead of only caching the contents of the file, why don't you put the contents of the file in a nice strongly typed collection of items, and then cache that? It'll probably make searching for items a bit easier, and faster since there is no parsing involved.

提交回复
热议问题