开发者

What's the diff between Cache and Application?

开发者 https://www.devze.com 2022-12-26 17:55 出处:网络
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 st

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

精彩评论

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

关注公众号