6

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.

Hardik
  • 3,815
  • 3
  • 35
  • 45
  • 4
    Apparently, dalli [_can be async_](https://github.com/petergoldstein/dalli/issues/144), but it has to be used from within an async environment. – Sergio Tulentsev May 08 '17 at 12:01
  • @SergioTulentsev Thank you, can you write as answer so I can accept it as correct answer. – Hardik May 08 '17 at 12:21

1 Answers1

0

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

Hardik
  • 3,815
  • 3
  • 35
  • 45