Does Tokyo Cabinet support in-memory B+ Tree implementation?

782 views Asked by At

Does Tokyo Cabinet support in-memory B+ trees? If so, how do I use them? Because in some web articles (for example here and here), such usage is reported but I can't find any document describing how to do it. Thanks.

2

There are 2 answers

3
Sven On BEST ANSWER

The documentation describes tcadbopen(TCADB *adb, const char *name) as follows:

`name' specifies the name of the database. If it is "*", the database will be an on-memory hash database. If it is "+", the database will be an on-memory tree database.

So, the name "+" does what you want.

0
lizzie On

You will also find a good overview of the possibilities of Tokyo Tyrant here: http://korrespondence.blogspot.fr/2009/09/tokyo-tyrant-tuning-parameters.html