memcachedb是为了持久化而产生的一个分布式 "key-value"存储系统,你可以认为是memcached+berkeley DB+sina的一些东西的一个集成,这个东西主要是为了提高持久化对象的访问效率,而不是一个缓存,他的特点是:
Identity Management(Account, Profile, User config info, Score)
Messaging
Personal domain name
meta data of distributed system
Other non-relatonal data
‘-l <ip addr>’ interface to listen on, default is INDRR ANY 这个不要管他
‘-d’ run as a daemon 作为隐藏的线程运行
‘-r’ maximize core file limit
‘-u <username>’ assume identity of <username> (only when run as root) 用户名
‘-c <num>’ max simultaneous connections, default is 1024
‘-b <num>’ max item buffer size in bytes, default is 1KB
‘-v’ verbose (print errors/warnings while in event loop)
‘-vv’ very verbose (also print client commands/reponses)
‘-P <file>’ save PID in <file>, only used with -d option
is 64MB
‘-f <file>’ filename of database, default is
/data1/memcachedb/default.db
‘-H <dir>’ env home of database, default is /data1/memcachedb
‘-L <num>’ log buffer size in kbytes, default is 32KB
‘-C <num>’ do checkpoint every XX seconds, 0 for disable, default is 60s
‘-D <num>’ do deadlock detecting every XXX millisecond, 0 for disable,
default is 100ms
‘-N’ enable DB TXN NOSYNC to gain big performance
improved, default is off
Connected to 127.0.0.1.
Escape character is ’^]’.
‘set’ ”Store this data”
‘add’ ”Store this data, but only if the server *doesn’t* already
hold data for this key”
‘replace’ ”Store this data, but only if the server *does* already hold
data for this key”
‘delete’ deletes one item based a key
‘incr/decr’ Increment or decrement a numeric value. It’s atomic!
‘stats’ shows the status of current deamon. ’stats’, ’stats malloc’,
’stats maps’
Steve
‘db archive’ removes log files that are no longer needed.
‘stats bdb’ shows the status of BerkeleyDB.
‘rep ismaster’ shows whether the site is a master.
‘rep whoismaster’ shows which site is a master.
‘rep set priority’ sets the priority of a site for electing in replication.
‘rep set ack policy’ sets ACK policy of the replication.
‘rep set ack timeout’ sets ACK timeout value of the replication .
‘rep set bulk’ Enable bulk transfer or not in replication.
‘rep set request’ sets the minimum and maximum number of missing
log records that a client waits before requesting
retransmission.
‘stats rep’ shows the status of Replication.