ruby-on-railsmemcacheddalli

Are dalli gem's write operations asynchronous?


I want to use memcached for session store which is on a different server it will be accessed by rails app using dalli gem. So are dalli gem's write operations asynchronous? If not is it possible to make them async? As it shouldn't be the bottleneck for memcached to serve efficiently.

By asynchronous I mean rails server won't wait for session operation to get completed.


Solution

  • From Sergio's comment: Apparently, dalli can be async, but it has to be used from within an async environment.