阅读背景:

如何在Django视图中缓存请求列表?

来源:互联网 

I'd like to keep the list of 'Last Seen' 20 requests into a Django view. Also I want to avoid creating a separate model for it and just keep the requested urls in memcached, by pushing each new request to a fixed size queue and then retrieve the queue in views. But since cache is just key:value dictionary I'm wondering how best to achieve this? I'd like to keep the list of 'Last Seen' 20 req




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: