We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Such as MongoDB
from beaker.cache import CacheManager from beaker.util import parse_cache_config_options cache_opts = { 'cache.type': 'ext:mongodb', 'cache.url': 'mongodb://localhost:27017/cache', 'cache.expire': 600 } cache = CacheManager(**parse_cache_config_options(cache_opts)) @cache.cache('fib') def fib(n): if n < 2: return n return fib(n - 1) + fib(n - 2) if __name__ == '__main__': result = [fib(i) for i in range(35)] print(result)
result
If the _id can be configure, it's easy to realize distributed cache.
_id
Looking forward to your reply, thank you for your great work!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Such as MongoDB
result
If the
_id
can be configure, it's easy to realize distributed cache.Looking forward to your reply, thank you for your great work!
The text was updated successfully, but these errors were encountered: