A cross-process/host Redis-based memoizing decorator in Python for asynchronous (and synchronous) functions in Twisted applications.
pip install walnutHere are some simple examples to give you the idea:
from twisted.internet import reactor
from twisted.internet.defer import inlineCallbacks
import walnut
@inlineCallbacks
def main():
reactor.stop()
reactor.callWhenRunning(main)
reactor.run()