-
YYCache的内存怎么越使越大,设置了上限,但是wal文件一直只增不减
-
比如我写了个Model,我想用YYCache来缓存,但是提示警告
[TestModel encodeWithCoder:]: unrecognized selector sent to instance 0x15e4ac6c0
2016-03-21 16:47:43.069 WisdomCommunity[2247:640281] **\* -[NSKeyedArchiver dealloc]: …
-
你好,感谢你分享的YYCache项目,我们在项目中有使用,在使用过程中我们发现一个问题:
_dbOpen函数在某些情况下由于打开sqlite数据库失败,但是内部状态维护有点问题,具体是场景是:图片缓存被多次清理,在某次清理时打开sqlite数据库返回SQLITE_CANTOPEN,_dbOpen函数返回了NO,但是内部状态,db,_invalidated等状态都标示为打开成功状态,在下次使用图片缓…
-
Can you please provide an example for how to use YYCache ?
-
目前YYKit的podspec文件因为没有分subspec, 所以引入后全部都混入到一个文件夹中, 这么做有几个缺点:
1. 没有很好的归档, 看起来很混乱
2. 不能只引入部分文件, 比如我只想引入里面的cache, 但是却不得不引入全部的文件
-
你好,YYKVStorage.m 中获取最近访问数据时,是否应该使用 `asc` 而不是 `desc`。最近的时间值更大。使用 desc 导致每次移除时把最近使用的元素优先移除掉了。
```
- (BOOL)removeItemsToFitCount:(int)maxCount {
items = [self _dbGetItemSizeInfoOrderByTimeDescWi…
-
加载数据时先根据失效时间判断缓存是否有效,失效则从新请求数据,可以吗?
-
大神,使用YYWebImage时,当列表页有大量图片而且来回浏览会收到内存警告,App瞬间闪退,有什么好办法吗?下边的方法不能解决啊
YYMemoryCache *memoryCache = [YYWebImageManager sharedManager].cache.memoryCache;/获取内存缓存
memoryCache.shouldRemoveAllObjectsOnMemoryW…
-
setObject: forKey: withBlock not work... but setObject: forKey: works ,why?
-
- (void)_trimToCost:(NSUInteger)costLimit {
BOOL finish = NO;
OSSpinLockLock(&_lock);
if (costLimit == 0) {
[_lru removeAll];
finish = YES;
} else if (_lru->_totalCost _totalCost >…