Tokyo Cabinetphp
Tokyo Cabinet 是一個DBM的實現。這裏的數據庫由一系列key-value對的記錄構成。key和value均可以是任意長度的字節序列,既能夠是二進制也能夠是字符串。這裏沒有數據類型和數據表的概念。java
看成爲Hash表數據庫使用時,每一個key必須是不一樣的,所以沒法存儲兩個key相同的值。提供瞭如下訪問方法:提供key,value參數來存儲,按 key刪除記錄,按key來讀取記錄,另外,遍歷key也被支持,雖然順序是任意的不能被保證。這些方法跟Unix標準的DBM,例如GDBM,NDBM 等等是相同的,可是比它們的性能要好得多(所以能夠替代它們)
當按B+樹來存儲時,擁用相同key的記錄也能被存儲。像hash表同樣的讀取,存儲,刪除函數也都有提供。記錄按照用戶提供的比較函數來存儲。能夠採用順序或倒序的遊標來讀取每一條記錄。依照這個原理,向前的字符串匹配搜 索和整數區間搜索也實現了。另外,B+樹的事務也是可用的。
As for database of fixed-length array, records are stored with unique natural numbers. It is impossible to store two or more records with a key overlaps. Moreover, the length of each record is limited by the specified length. Provided operations are the same as ones of hash database.
對於定長的數組,記錄按天然數來標記存儲。不能存儲key相同的兩條或更多記錄。另外,每條記錄的長度受到限制。讀取方法和hash表的同樣。
Tokyo Cabinet是用C寫的,同時提供c,perl,ruby,java的API。Tokyo Cabinet在提供了POSIX和C99的平臺上均可用,它以GNU Lesser Public License協議發佈。python
Tokyo Tyrantsql
Tokyo Tyrant 加上 Tokyo Cabinet,構成了一款支持高併發的分佈式持久存儲系統,對任何原有Memcached客戶端來說,能夠將Tokyo Tyrant當作是一個Memcached,可是,它的數據是能夠持久存儲的。這一點,跟新浪的Memcachedb性質同樣。數據庫
尋找Tokyo Cabinet相關的軟件包ubuntu
- keke@keke-VirtualBox ~ $ sudo apt-cache search Tokyo Cabinet
- [sudo] password for keke:
- libghc6-tokyocabinet-dev - Haskell binding of Tokyo Cabinet
- libghc6-tokyocabinet-doc - Haskell binding of Tokyo Cabinet; documentation
- libghc6-tokyocabinet-prof - Haskell binding of Tokyo Cabinet; profiling library
- libtokyocabinet-dbg - Tokyo Cabinet Database Libraries [runtime]
- libtokyocabinet-dev - Tokyo Cabinet Database Libraries [development]
- libtokyocabinet-perl - Perl Binding of Tokyo Cabinet
- libtokyocabinet-ruby-doc - Documentation for Ruby Binding of Tokyo Cabinet Database
- libtokyocabinet-ruby1.8 - Ruby Binding of Tokyo Cabinet Database (ruby 1.8)
- libtokyocabinet-ruby1.9.1 - Ruby Binding of Tokyo Cabinet Database (ruby 1.9.1)
- libtokyocabinet8 - Tokyo Cabinet Database Libraries [runtime]
- libtokyotyrant-dev - Tokyo Tyrant development files
- libtokyotyrant3 - Tokyo Tyrant runtime libraries
- php5-tokyo-tyrant - PHP interface to Tokyo Cabinet's network interface, Tokyo Tyrant
- python-pytyrant - Pure Python client implementation of the Tokyo Tyrant protocol
- tokyocabinet-bin - Tokyo Cabinet Database Utilities
- tokyocabinet-doc - Tokyo Cabinet Database Documentation
- tokyotyrant - Tokyo Tyrant: network interface to Tokyo Cabinet
- tokyotyrant-dbg - Tokyo Tyrant debugging symbols
- tokyotyrant-doc - Tokyo Tyrant documentation
- tokyotyrant-utils - Tokyo Tyrant utilities
尋找和tokyo tyrant相關的軟件包數組
- keke@keke-VirtualBox ~ $ sudo apt-cache search tokyo tyrant
- collectd-core - statistics collection and monitoring daemon (core system)
- libtokyotyrant-dev - Tokyo Tyrant development files
- libtokyotyrant3 - Tokyo Tyrant runtime libraries
- php5-tokyo-tyrant - PHP interface to Tokyo Cabinet's network interface, Tokyo Tyrant
- python-pytyrant - Pure Python client implementation of the Tokyo Tyrant protocol
- tokyotyrant - Tokyo Tyrant: network interface to Tokyo Cabinet
- tokyotyrant-dbg - Tokyo Tyrant debugging symbols
- tokyotyrant-doc - Tokyo Tyrant documentation
- tokyotyrant-utils - Tokyo Tyrant utilities
- keke@keke-VirtualBox ~ $ sudo apt-cache show tokyotyrant
- Package: tokyotyrant
- Priority: optional
- Section: universe/misc
- Installed-Size: 304
- Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
- Original-Maintainer: Örjan Persson <orange@fobie.net>
- Architecture: i386
- Version: 1.1.40-4
- Depends: libc6 (>= 2.4), liblua5.1-0, libtokyocabinet8 (>= 1.4.37), libtokyotyrant3 (= 1.1.40-4), adduser, lsb-base (>= 3.0-6)
- Recommends: tokyotyrant-utils
- Filename: pool/universe/t/tokyotyrant/tokyotyrant_1.1.40-4_i386.deb
- Size: 71936
- MD5sum: 5316dae38c0c8cfe7663e8813a8f2473
- SHA1: d56df83b7fb5762a2be07fb651d33e5d9a034031
- SHA256: a033dafeea4575eccd61211692e7b43dff51950531552f0dc4cd264b35111616
- Description: Tokyo Tyrant: network interface to Tokyo Cabinet
- Tokyo Tyrant is a network interface to the DBM Tokyo Cabinet. You might bother
- in the case where multiple processes share the same database or where remote
- processes access the database. Thus, Tokyo Tyrant is provided for concurrent
- and remote connections to Tokyo Cabinet.
- .
- This is the Tokyo Tyrant server package.
- Homepage: http://1978th.net/tokyotyrant/
- Bugs: https://bugs.launchpad.net/ubuntu/+filebug
- Origin: Ubuntu