tokyo-tyrant in memory database like redis or can it grow larger then memory and retrieve from harddrive
Tokyo-tyran开发者_如何转开发t in memory database like redis(allthough redis has VM?) or can it grow larger then memory and retrieve from harddrive. If so how does it achieve that?
Tokyo Tyrant is just a network interface to Tokyo Cabinet, not an actual database server. Tokyo Cabinet has support for both in-memory and on-file storages. When you start Tokyo Tyrant's ttserver the database name you specify is the type of storage that will be used. For instance, if you start up ttserver with:
ttserver "*" -- in-memory hash
ttserver "+" -- in-memory tree
ttserver /var/ttserver/casket.tch -- on-disk hash
ttserver /var/ttserver/casket.tcb -- on-disk b-tree
ttserver /var/ttserver/casket.tct -- on-disk fixed-length
精彩评论