Re: Shared variables

16 views
Skip to first unread message

Daniel Doubrovkine

unread,
May 7, 2013, 2:05:56 PM5/7/13
to ruby-...@googlegroups.com
I would not store any globals and would go to mongo directly all the time. I would use memcached "normally" with Garner - https://github.com/artsy/garner.


On Mon, May 6, 2013 at 6:42 AM, Евгений Куртов <m...@lessless.pp.ua> wrote:
Hello! I want to build an API aplication utilizing Grape and MongoDB/Memcached. Obiviously there is a consistent data which can be shared among all the clients for optimization (something like class variable): database connection, rarely updated data allready pulled from the database and stored in memory. 
What is the possible approach to achieve this? 

--
You received this message because you are subscribed to the Google Groups "Grape Framework Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-grape+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--

dB. | Moscow - Geneva - Seattle - New York
dblock.org - @dblockdotorg

Reply all
Reply to author
Forward
0 new messages