简体   繁体   English

用于保存字符串或NSNumber的内存缓存

[英]In-memory cache for saving strings or NSNumbers

Is there any external library out there that does in-memory caching? 是否有任何外部库可以进行内存缓存? I was just thinking of creating a NSDictionary with key-value stores for this if there isn't any. 我只想创建一个带有键值存储的NSDictionary ,如果没有的话。 I know there's EGOCache but this does disk caching. 我知道有EGOCache但这会进行磁盘缓存。 Any ideas? 有任何想法吗?

NSCache基本上就像一个NSDictionary,只需要做一些修改就可以根据优先级等清除数据。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM