Modified MemCacheCache to raise NotImplementedError instead of returning false data.
authorrogelio <rogelio@rsrv.(none)>
Sat, 1 Oct 2011 05:40:18 +0000 (00:40 -0500)
committerJoshua Roesslein <jroesslein@gmail.com>
Sat, 1 Oct 2011 05:59:35 +0000 (00:59 -0500)
tweepy/cache.py

index ff2aada2829de8e23944ac5b82b6d90a976c7bb7..f906d4b6535b3be5634e6be410c6226d861875ec 100644 (file)
@@ -293,11 +293,11 @@ class MemCacheCache(Cache):
 
     def count(self):
         """Get count of entries currently stored in cache. RETURN 0"""
-        return 0
+        raise NotImplementedError
 
     def cleanup(self):
         """Delete any expired entries in cache. NO-OP"""
-        pass
+        raise NotImplementedError
 
     def flush(self):
         """Delete all cached entries. NO-OP"""