开发者

Use of hredis vs NSDictionary

I'm working on a game engine in objective-c where we want entities to have on-the-fly customization of attributes for ea开发者_JS百科ch entity. Initially, we were thinking of using NSDictionary, but are also aware of Redis' Objective-C port.

My question is that we will have any performance gains using Redis over NSDictionary?


Redis is a persistence solution. NSDictionary is an in-memory key-value store with specific restrictions on keys and values.

The two are focused on solving different problems.

If you reframe the question on persistency of object graphs, then the answer is "Core Data" unless there is some specific, most likely cross platform, need to use something else.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜