Ruby daemon process to keep objects alive for transient Ruby instances

白昼怎懂夜的黑 提交于 2019-12-01 14:37:24

You're probably looking for something like memcache (Gem) or redis (Gem).

You may also be interested in redis-objects.

The maglev implementation of Ruby seems to be perfect for your needs as it provides persistent distributed Ruby objects.

The MagLev VM takes full advantage of GemStone/S JIT to native code performance, distributed shared cache, fully ACID transactions, and enterprise class NoSQL data management capabilities to provide a robust and durable programming platform. It can transparently manage a much larger amount (terabytes) of data and code than will fit in memory. There are no restrictions on what types of objects, classes, blocks, threads or continuations that can be stored and executed.

But it might be a bit overkill depending on the size of your project.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!