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.
根据specification:
您可以为每个写操作创建并关闭writer,或者使用Tokyo Tyrant来提供并发访问。在
相关问题 更多 >
编程相关推荐