我已经阅读了文档,发现很少有关于访问单个kyotocabinet数据库的多个进程(读者和编写者).看来您可以创建多个读取器,但除非您指定ONOLOCK,否则多个编写器将阻止尝试打开数据库.任何人都可以阐明它是如何工作的或是否有可能?我知道KyotoTycoon是一个选择,但我特别关注KyotoCabinet.
解决方法
在tokyocabinet手册页上找到了这个:
Tokyo Cabinet provides two modes to connect to a database: “reader” and “writer”. A reader can perform retrieving but neither storing nor deleting. A writer can perform all access methods. Exclusion control between processes is performed when connecting to a database by file locking. While a writer is connected to a database,neither readers nor writers can be connected. While a reader is connected to a database,other readers can be connect,but writers can not. According to this mechanism,data consistency is guaranteed with simultaneous connections in multitasking environment.
然后猜测,这也适用于京都.