FredHutch / glam-browser-v2

Gene-Level Analysis of Microbiomes - Browser
Other
0 stars 0 forks source link

Add redis for caching #7

Closed sminot closed 4 years ago

sminot commented 4 years ago

Instead of an in-memory cache, use redis as a dict.

I had jettisoned this approach earlier because decorating function calls with memoization seemed incompatible with the new class structure of GLAM. However, function decoration isn't needed for a naive cache which is attached to the GLAM_IO class and accessed directly by the function calls instead of reading from the in-memory cache (dict).