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。