You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to use TokyoCabinet and BDB in a ReadOnly mode.
It's possible in the underlying library but I do not see any example of how to use these options when opening a DB file.
An example for BDB and TokyoCabinet would be helpful.
Thanks
The text was updated successfully, but these errors were encountered:
Doesn't look like we have an option for that at the moment - we can look at adding it though. In the meantime, you can use the backend option when creating your store to configure TokyoCabinet in the way you would like. For example:
bdb= ::TokyoCabinet::BDB.newbdb.open('my_database.tch', ::TokyoCabinet::BDB::OREADER)# Sorry if this is not 100% correctstore=Moneta.new(:TokyoCabinet,backend: bdb)
Hi,
Doesn't look like we have an option for that at the moment - we can look
at adding it though. In the meantime, you can use the backend option when
creating your store to configure TokyoCabinet in the way you would like.
For example:
bdb = ::TokyoCabinet::BDB.newbdb.open('my_database.tch', ::TokyoCabinet::BDB::OREADER) # Sorry if this is not 100% correctstore = Moneta.new(:TokyoCabinet, backend: bdb)
—
Reply to this email directly, view it on GitHub
<#233 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AANUHMGGQYBVICYHB5DIZK3V3NPHXANCNFSM57KFYUVA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
Hey,
I want to use TokyoCabinet and BDB in a ReadOnly mode.
It's possible in the underlying library but I do not see any example of how to use these options when opening a DB file.
An example for BDB and TokyoCabinet would be helpful.
Thanks
The text was updated successfully, but these errors were encountered: