valyala / ybc

Fast in-process BLOB cache with persistence support

Home Page:https://groups.google.com/forum/?fromgroups=#!forum/ybc-main

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is detection of open by multiple processes/threads possible?

shanemhansen opened this issue · comments

I'm working on a deployment model where I spin up a new process before killing off the old process. I understand ybc doesn't support being opened from multiple processes but I'm wondering if there is a way that I can detect if a cache file is currently open before opening it in the new process.

If not, I'll probably just build my own signaling mechanism. I know sqlite has similar restrictions but does manage to avoid corruption.

Thanks!