0

I want to cache objects of custom claas, which implements serializable using LRUCache in android. It is possible? If yes, how can I proceed to do the same?

4

1 回答 1

1

LruCache 具有 Map 的语法,即 LruCache 键值对。我看不出有什么理由不能在其中存储 Custom 类的对象。它将表现得像一个地图。另一方面,LruCache 通常用于缓存位图。

于 2013-07-12T10:21:03.850 回答