mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 00:07:57 -05:00
Expose the memoized function when decorated with @memoize.
This commit is contained in:
@@ -66,6 +66,7 @@ def memoize(iden, time = 0, stale=False, timeout=30):
|
||||
|
||||
return res
|
||||
|
||||
new_fn.memoized_fn = fn
|
||||
return new_fn
|
||||
return memoize_fn
|
||||
|
||||
|
||||
Reference in New Issue
Block a user