2 ms·
To me, mocking of the caches for testing is super important and missing. I searched the article, the linked "Why Ring?", and this page of responses for "mock",
by merlincorey 7y ago
To me, mocking of the caches for testing is super important and missing.
I searched the article, the linked "Why Ring?", and this page of responses for "mock", but no results.
Maybe it's just me!
- youknowone 7y agoThanks. I didn't think adding them to the why page. For now, the actual projects work like: if DEBUG: ring_cache = functools.partial(ring.dict, {}, default_action='execute') else: ring_cache = functools.partial(ring.redis, client) @ring_cache(...) def ... Which is not very good solution at all. I will fix the design and properly document it. Thanks for suggesting why page and mock section.