JavaÈçºÎ±éÀúMCËùÓÐITEM
Java
鍼뱎˜
MC
ËùÓÐ
ITEM
1
¡¢
mc
±éÀú
item
ÔÀí
Mc
±éÀú
item
Óõ½µÄÃüÁîÓÐÈý¸ö£º
stats items
£¬
stats cachedump, get
¡£Í¨¹ý
telnet
³ÌÐò
telnet
µ½
mc
·þÎñÆ÷ÉÏ£¨
telnet ip
µØÖ·
¶Ë¿ÚºÅ£¬Èç
telnet 192.168.0.1 11211
£©£¬ÒÀ´ÎÖ´ÐÐÉÏÊö
3
¸öÃüÁî¼´¿É±éÀú
mc
µÄ
item
¶ÔÏ󣬼°²é¿´
key
¶ÔÓ¦µÄ
value
Öµ¡£
1)
stats items
£ºÏÔʾ¸÷¸ö
slab
ÖÐ
item
µÄÊýÄ¿ºÍ×îÀÏ
item
µÄÄêÁä
(
×îºóÒ»´Î·ÃÎʾàÀëÏÖÔÚµÄÃëÊý
)
stats items
STAT items:1:number 2
STAT items:1:age 847
STAT items:4:number 1
STAT items:4:age 831
STAT items:10:number 1
STAT items:10:age 830
END
2
£©
stats cachedump
£º
stats cachedump
slab_id limit_num
£¬ÏÔʾij¸ö
slab
ÖеÄÇ°
limit_num
¸ö
key
ÁÐ±í£¬ÏÔʾ¸ñʽÈçÏ£º
ITEM key_name [
value_length b; expire_time|access_time s]
ÆäÖУ¬
memcached 1.2.2
¼°ÒÔÇ°°æ±¾ÏÔʾµÄÊÇ·ÃÎÊʱ¼ä
(timestamp)
£¬
1.2.4
ÒÔÉÏ°æ±¾£¬°üÀ¨
1.2.4
ÏÔʾ
¹ýÆÚʱ¼ä
(timestamp)
£¬Èç¹ûÊÇÓÀ²»¹ýÆÚµÄ
key
£¬
expire_time
»áÏÔʾΪ·þÎñÆ÷Æô¶¯µÄʱ¼ä¡£
ÏÂÊö½Å±¾ÎªÏÖʵÉÏÊö
item 1
ϵÄËùÓÐ
key
Öµ£¬Èç
2248.516289644596
stats cachedump 1 0
ITEM 2248.516289644596 [4 b;
1257986909 s]
ITEM 3626.4522262678565 [4
b; 1257986895 s]
END
ÖÁ´Ë£¬Ö»ÒªÑ»·
1
£©ÁгöµÄ
items
ºÍ
2
£©ÏµľßÌåÿ¸ö
item
¶ÔÓ¦µÄËùÓÐ
key
£¬¼´¿É±éÀú
mc
Öдæ·ÅµÄËùÓжÔÏóµÄ
key
Öµ£¬ÄÇô£¬Ö»Òª
get
¸Ã
key
Öµ£¬¼´¿É»ñÈ¡
key
¶ÔÓ¦µÄ
value
Öµ¡£
2
¡¢
java
´úÂëʵÏÖ£¬´ýÐø
Ïà¹ØÎĵµ£º
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.Driver;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Enumeration;
import java.util.Vector;
/*ËäÈ»ÏÖÔÚÓÃAPACHE COMMONS DBCP¿ÉÒԷdz£·½±ãµÄ½¨Á¢Êý¾Ý¿âÁ¬½Ó³Ø£¬ ......
java exception ½â¾ö·½°¸ - ÎÒµÄÒì³£Íø|Òì³£|exception 730 - org.hibernate.LazyInitializationException:could not initialize proxy 731 - ¾¯¸æ: Error setting value 732 - override and commit 733 - Building workspace has encountered a problem. Errors during build 734 - Could not open the editor: An ......
ÏÈ¿´¸öÀý×Ó£º
½Ó¿Ú
package example;
public interface Basic {
public void hello();
}
½Ó¿ÚµÄʵÏÖÀà
package example;
public class BasicService implements Basic {
public void hello() {
Sysyt ......
ʵÑé1 Java¿ª·¢¹¤¾ß¼°³ÌÐòÉè¼Æ³õ²½
ʵÑéÄ¿µÄ
Äܹ»´î½¨JavaµÄ¿ª·¢»·¾³
ÊìϤ³£ÓõÄJDK²Ù×÷ÃüÁîµÄʹÓÃ
ÊìϤJava³ÌÐòµÄ±àдºÍ±àÒë¹ý³Ì
Á˽ⳣÓÃJava¿ª·¢¹¤¾ßµÄʹÓÃ
ʵÑéÄÚÈÝ
ʵÑéÁ·Ï°1£º´î½¨ºÍʹÓÃJDK
1£®JDKµÄÏÂÔغͰ²×°
JDKÊÇSUN¹«Ë¾Ãâ·ÑÔÚÍøÉÏ·¢²¼µÄ£¬ÎÒÃÇ¿ÉÒÔ½øÈ ......