Today, I saw a memcached on the Internet as the hibernate level-2 distributed cache. I felt very interested. I tried it and it felt pretty good. I recommend it to you.
Http://code.google.com/p/hibernate-memcached/The latest version is 1.0, supporting hibernate3.3.
The following describes how to use it:Hibernate-memcached must support the following class libraries
First, the concept Memcached is a free and open source, high performance, distributed memory object caching system.Memcached is a memory-based Key-value store used to store arbitrary data (strings, objects, and so on) of small pairs. This data can be a database call, an API call, or a result of a page render.The general purpose is to reduce the number of database accesses by caching database query results to improve the speed and scalability of dynam
Memcached learning notes-storage command source code analysis part I: memcached learning notes
For Original article reprinted, please mark it. Thank you.
The previous article analyzed the memcached connection model and learned how memcached efficiently processes client connections. This article analyzed the process_upd
memcached Efficient use of resource data in data deduplication does not really disappear from memcachedLast described, memcached does not release allocated memory. After the record times out, the client can no longer see the record (invisible, Transparent), and its storage space can be reused.Lazy ExpirationMemcached internally does not monitor whether the record is out of date, but instead looks at the tim
) network Factors
Network factors refer to whether MySQL and Memcached are in the same IDC, and whether the network performance between them is good. The better the network performance, the faster the speed. The locally deployed Memcached can reduce network overhead.
4) inserted data volume
The size of the inserted data volume includes two aspects: the size of each record inserted into MySQL, and the size
' (' Addtime ') ) Engine=myisam DEFAULT charset=latin1;
Articles you may be interested in:
Php+shell Method of implementing multithreading
PHP-FPM boot automatically starts shell script
Shell, Perl, Python, PHP access MySQL database Code instance
Implementing update PHP5 in shell scripts
Shell script Implementation launches PHP built-in fastcgi Server
PHP and Shell implementations check if Samba and NFS server exist
Ruby, PHP, Shell implementations for a prime number w
We're off duty today. How to install, start, and uninstall memcached in the Windows operating system:
1, download the relevant software:
Download Address:http://download.csdn.net/download/wangshuxuncom/8249501;
2, extract the compressed files obtained, you will get a folder called "Memcached-1.2.6-win32-bin", the folder will be copied to the appropriate location (such as copy to the C packing directory);
3,
number of concurrent connections. The default value is 1024-P: set the pid file for saving Memcache. Note:-P (P is capital)-h displays help
B. Install the SDK through the APT package
apt-get install memcached
Ii. Install Memcache Manager
A. Prepare the environment
Install the Memcache Client
Method 1: Install the SDK through APT
apt-get install php5-memcache
Method 2: Install by using pecl
pecl install memcache
Restart Apache
/etc/init.d/apache2
Memcached learning notes-storage command source code analysis part 2: memcached learning notes
Last Review: memcached Study Notes-storage command source code analysis part I analyzes the process of memcached's storage command source code and describes how memcached parses text commands and the memory management mechani
covering:
Design Rationale
Implementation
Getting started
Design Rationale
Using the memcached API, Web services can directly access the InnoDBAnd MySQL Cluster Storage engines without transformations to SQL,Ensuring low latency and high throughput for read/write queries.Operations such as SQL parsing are eliminated and more of the server'sHardware resources (CPU, memory and I/O) are dedicated to servicingQuery within the storage engine itself.
O
Memcached is an open-source, high-performance, distributed memory object cache system that can be used in various cache scenarios. Its main purpose is to accelerate Web applications by reducing database access. It is a memory-based "key-Value Pair" storage that stores direct data from database calls, API calls, or page reference results, such as strings and objects.
You need to describe the difference between him and memcache. mencache is a module of
should do well in the early planning.5) Delay problemIf MySQL is on a machine that uses a larger resource, it can cause the update memcached to be too slow, that is, a delay problem like M/s.6) Disaster tolerance problemIf there are outages in MySQL and memcached, you need to consider how to recover, according to the previous section of the test can be considered: to build an error table, if there is a pro
Everyone is familiar with memcached. The introduction from Baidu encyclopedia is as follows:
Memcached is a high-performance distributed memory object Cache System for dynamic web applications to reduce database load. It caches data and objects in the memory to reduce the number of times the database is read, so as to provide dynamic, database-driven website speed. Me
Install memcached in Linux source code and memcached in linux source code
Basic steps:
1. Download the compressed file (wget File url)
2. Decompress (tar-zxvf file name)
3. configure (./configure -- prefix = installation directory)
4. make compilation (only if step 3 is correct; otherwise, go to step 1)
5. make install installation (after installation, remember to cd to the installation directory to check w
also introduces the distributed memcached.3
Editing
A visual memcached management system written in PHP
Memadmin is a visualized memcached management and monitoring tool. It is developed using PHP and is small in size and easy to operate.
Main functions:
Server parameter monit
1,
Install and configure the memcache extension Library
Find the php. ini file and add it:
Extendsion = php_memcache.dll
And copy the corresponding DLL file to the ext directory.
2,
Use PHP to perform curd operations on memcahced (view manual)
3,
Programming Test
Used to test addition and Acquisition
// Instantiate the memcache object $ M = new memcache (); // connect to the specified memcached, the first parameter: IP address, the second parameter
Memcached process startup and monitoring 1. memcached_inc.sh sets the path, port, and other information. #! Binsh # configincludeHOST $ (hostname) Handle
Memcached process startup and monitoring 1. memcached_inc.sh sets the path, port, and other information. #! /Bin/sh # config include HOST = $ (hostname) SITE = "mysit
1M space to produce a slab class. This together with the LRU algorithm in the cache removal mechanism is seen. (If this piece is wrong, ask the great God to help point it out)5. Cache deletion mechanism
Memcached does not release allocated memory, and after the record times out, its storage space can be reused
memcached internal does not monitor whether the cache is out of date (that is,
memcached How data expires
Lazy Expiration
Memcached internally does not monitor whether the record is out of date, but instead looks at the timestamp of the record at get and checks whether the record is out of date. This technique is called lazy (lazy) expiration. As a result, memcached does not consume CPU time on outdated
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.