2
在here at the Django groups Tom Evans explains the method做比较和设置在Django如下图所示Django的内存缓存:比较和设置
You can access the memcached client via django though:
>>> from django.core import cache
>>> c=cache.get_cache('default')
>>> help(c._client.cas)
但不知何故,我无法得到它的工作。
>>> from django.core import cache
>>> c=cache.get_cache('memcache')
>>> help(c._client.cas)
Traceback (most recent call last):
File "<console>", line 1, in <module>
AttributeError: 'MemcachedCache' object has no attribute '_client'
我怎样才能做一个比较和Django中设置,如果上面显示不是方法?
我使用Django版本1.3。