from gluon.storage import Storage

33 views
Skip to first unread message

xgp.l...@gmail.com

unread,
Sep 17, 2020, 5:21:40 PM9/17/20
to web2py-users
Hi all,

I wonder if someone can give directions on how to keep a Dict in RAM as a method for fast look for data.

Options:
- from gluon.storage import Storage.
But there is not much info about the reach of this module. Is it renew in every request?

- What about cache?
Can i store a dict and using across requests?


Thanks in advanced,


Clemens

unread,
Sep 17, 2020, 6:48:00 PM9/17/20
to web2py-users
It's possible as described here

Have a look there. If the information doesn't help you, let me know. I did it once (via cache.ram) and can therefore provide an example if needed.

Best regards
Clemens
Reply all
Reply to author
Forward
0 new messages