阅读背景:

Ruby:创建一个更快的字符串缓存:数组还是SQL?

来源:互联网 

I'm making a ruby server with a cache of info about the online clients. This info should be preserved when I turn off the server. I can store it in a simple array and save it with Marshal or I can use a SQL database (MySQL, probably). Which is better to use? I think the Array method is easly, but the SQL is faster than? Thanks!I'm making a ruby server with a cache of info a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: