Posted on Sep 22, 2012 by
Massive Elephant
in the method DictCache.getitem(key), it use self._cache_dict.get(key, NULL) to get value, but LRUDict direct subclass the builtin dict, the get()/set() does not function correctly. I reimplement the LRUDict as a subclass of collections.MutableMapping. Not sure if it is a bug, or I am wrong.
Reference:
- cache.py 2.46KB
Status: New
Labels:
Type-Defect
Priority-Medium