mark.dog

mark.dog


Currently working at FIFA Index and Klippa. Find me on Twitter, GitHub or LinkedIn – Mark Doggen

January 2017
M T W T F S S
     
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

Categories


mark.dog

Currently working at FIFA Index and Klippa. Find me on Twitter, GitHub or LinkedIn – Mark Doggen


January 10th, 2017 1

Redis cache decorator

Some time ago I had to perform some time intensive operations in Python. A certain method would always return the same (given the same arguments), but get queried numerous times while running the script. Caching would make this script a lot faster, so I made this easy Redis decorator that can be slapped onto any Python method and make it’s output cacheable right away.

markmark