Comments (5)
嗯。。现在没有这个功能。。
from yycache.
有这2 个需求就好了
第一 我想获取本地缓存的 存在的时间
第二 我想根据我给YYCache的时间(duration) 和 和缓存存在的时间 来判断缓存是不是有效
from yycache.
呃,cache 对外的接口没有暴露这个属性,你可能需要先 fork 来自己改一下了。。
我还是希望对外 API 尽可能简洁,所以要再考虑下这个属性有没有必要暴露给调用者。
from yycache.
恩 谢谢了 ,我先关掉 这个 issue
from yycache.
还是希望加个缓存到期可以不自动清除的功能,标记下缓存是否有效就好。
from yycache.
Related Issues (20)
- 关于 sqlite3_finalize 的疑问
- [YYKVStorage _dbClose]
- containsObjectForKey导致crash
- 修改工程名导致缓存失效 HOT 1
- YYDiskCache.m line 277 -[YYDiskCache setObject:forKey:] crash HOT 2
- 请问 YYDiskCache对象没有被缓存的时候,从[_globalInstances objectForKey:path]取出的来的对象为空?这样对导致每次都重新生成对象? HOT 1
- 请问一下:_globalInstances = [[NSMapTable alloc] initWithKeyOptions:NSPointerFunctionsStrongMemory valueOptions:NSPointerFunctionsWeakMemory capacity:0] value 使用的是 weak,为什么不使用 strong 呢
- removeNode:(_YYLinkedMapNode *)node 头尾节点处理 HOT 1
- 回调哪些object被删除的信息
- 因为其他App占用内存过多,导致当前App被系统杀掉后,存储的信息全部丢失? HOT 1
- YYCache导致启动卡死 HOT 1
- get出来的缓存永远是上一次的缓存 HOT 1
- Implicit declaration of function 'usleep' is invalid in C99
- YYDiskCache initWithPath 存储和取值存在问题 HOT 4
- -[YYKVStorage _dbExecute:] line:182 sqlite exec error (5): database is locked HOT 1
- 文件保存,归档/解档 iOS13之后弃用,希望早点看到更新.
- unable to close due to unfinalized statements or unfinished backups HOT 4
- 部分手机在使用YYCache存储时会清除数据 HOT 9
- [YYDiskCache objectForKey:]卡顿频率比较高 HOT 1
- 关于linkedmap中的字典处理问题
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yycache.