开发者

What's the diff between Cache and Application?

I just noticed a "Cache" object, when would you use the Cache object to store state开发者_如何学Python data nd when would you use the Application object?


Everything that you put in the Application state collection stays there.

When you put something in the Cache collection you can specify how long it will stay there and how important it is in relation to other objects in the cache. You can store any amount of data in the cahce, and the system will decide what to throw away depending on the current memory usage.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜