projects
/
tweepy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e30e7c
)
Modified MemCacheCache to raise NotImplementedError instead of returning false data.
author
rogelio
<rogelio@rsrv.(none)>
Sat, 1 Oct 2011 05:40:18 +0000
(
00:40
-0500)
committer
Joshua Roesslein
<jroesslein@gmail.com>
Sat, 1 Oct 2011 05:59:35 +0000
(
00:59
-0500)
tweepy/cache.py
patch
|
blob
|
blame
|
history
diff --git
a/tweepy/cache.py
b/tweepy/cache.py
index ff2aada2829de8e23944ac5b82b6d90a976c7bb7..f906d4b6535b3be5634e6be410c6226d861875ec 100644
(file)
--- a/
tweepy/cache.py
+++ b/
tweepy/cache.py
@@
-293,11
+293,11
@@
class MemCacheCache(Cache):
def count(self):
"""Get count of entries currently stored in cache. RETURN 0"""
- r
eturn 0
+ r
aise NotImplementedError
def cleanup(self):
"""Delete any expired entries in cache. NO-OP"""
- pass
+ raise NotImplementedError
def flush(self):
"""Delete all cached entries. NO-OP"""