Skip to content

Instantly share code, notes, and snippets.

@Taik
Last active August 29, 2015 14:11
Show Gist options
  • Save Taik/f2ec3f5d6a3bd492ea38 to your computer and use it in GitHub Desktop.
Save Taik/f2ec3f5d6a3bd492ea38 to your computer and use it in GitHub Desktop.
marrow/cache/example/basic.py output
$ python basic.py
Connecting...
Preparing...
Cache Bypass: 10 loops, best of 3: 10.8 msec per loop
Cached: 100 loops, best of 3: 5.29 msec per loop
Cached w/ Refresh: 100 loops, best of 3: 5.4 msec per loop
The 50th fibonacci number is: 12586269025 or 12586269025
Total cached objects: 51
Recorded prefixes: __main__:fibonacci
Example cache key:
CacheKey(__main__:fibonacci, None, 92f4d3af051f64c9f17c61626606088937521b4c4b0606d72dddddc474bbcb8f)
Cleaning up...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment