This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

storage.get()/storage.set()
#1
Hi, 

What the limitations of the storage.set() / storage.get() functions are?

Im trying to work out how much I can use before I break it... what is it’s capacity and where dose it actually store its information and how many times can this be stored/written? 

And what happens on power fail/ reboot are these values kept or lost?

Many Thanks
Reply
#2
Storage is kept in memory and is flushed to disk every 30 minutes. What kind of data do you want to store there?
Reply
#3
Thanks, mainly I want to store lua table and some other global variables, for use later on  etc, is there any limitations to how many times This function can be called? And how much memory is available? Is there some other way to make global lua table persistent?  
Many thanks
Reply
#4
There's no call limit. There's a memory limit but I doubt that your tables will be big enough to use a lot of it.

One thing to consider with tables in storage is that you might get race conditions when several scripts want to modify table data. If you don't need tables with multiple levels then built-in Redis hash functions can be used instead.

Right now it's hard to offer the best solution because I don't know what task do you have.
Reply


Forum Jump: