开发者

tokyo-tyrant in memory database like redis or can it grow larger then memory and retrieve from harddrive

开发者 https://www.devze.com 2023-01-29 15:54 出处:网络
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

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
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号