Redis:key-value Storage System. Like memcached, it supports a relatively larger number of stored value types, including string (string), list (linked list), set (set), and Zset (ordered set). These data types support Push/pop, Add/remove and
The PHP session of the Web server is given to memcached so that you do not have a problem with which Web server the Distributor will divide the IP connection to, and the configuration method is simple, in the PHP configuration fileAdding a statement
full-page static caching
That is, the page is all generated HTML static page, user access to direct access to the static page, and will not go to the PHP server parsing process. This kind of way, in the CMS system is more common, for example
Web PHP is a very good tool, it can be simple, can also be complex. Different items should be used in a different PHP.
Small items-simple and straightforward PHP
Generally for a functional page under 20 of the site, we can use a very simple frame
In the last article, it introduces the overall goal of the Enode framework, and how to realize the idea of high throughput, low latency, high availability and no single point problem. In this article, we'll analyze some other issues that need to be
Brief introduction
Simple-spring-memcached is an integrated use of spring and xmemcached. Use the cache in annotations.
Official address
Http://code.google.com/p/simple-spring-memcached/wiki/UserGuide
Note Notes
Official address:
http://memcached.org/
Introduction
Why are there memcache and memcached two kinds of names?
In fact, Memcache is the name of this project, and Memcached is the main program file name on its server side.
Memcache Official
Redis is a key-value storage system. Similar to memcached, it solves the situation where data is completely lost after a power outage, and she supports more untyped value types, and supports lists (list), sets (set), and Zsets (ordered sets) of data
The system ran for a long time, there will always be such a problem and bottlenecks, there are problems not scary, we have the "tiger" thing--nothing more than the positioning problem-> analysis-> put forward solutions-> practice-> Results Feedback->
1. Download the memcached and libevent separately and put them in the/tmp directory:
# cd/tmp
# wget http://www.danga.com/memcached/dist/memcached-1.2.0.tar.gz
# wget http://www.monkey.org/~provos/libevent-1.2.tar.gz
2. Install Libevent First:
#
PHP5.5 How to install memcached under Windows
Download service-Side resources
http://download.csdn.net/detail/zsjangel/7104727
After the download is complete, unpack (I'm using a 64-bit, 32-bit version I haven't tried, should be no problem), go
Recently spent two days with the muduo part of the implementation of the Memcached server protocol, the code is located in Examples/memcached/server, can pass memcached most of the test cases (INCR/DECR has not yet implemented).
This is not a
0. It is quicker to use single quotes instead of double quotes to contain strings. Because PHP searches for variables in a string enclosed in double quotes, single quotes are not, note: only echo can do this, it is a "function" that can take
First of all, to ensure that the LNMP architecture built successfully, the version below, personally tested.
1. LNMP Environment
nignx:1.0.15
pcre:8.12
mysql:5.0.77
php:5.3.16
PHP needs to include modules:
eaccelerator:0.9.6.1
The beginning of the decision to change the name of a series of articles, think of a good name, anyway, is not playing stand-alone version of the line.
Okay, here's a look at a non-persistent cache server Memcache, when it comes to caching
1. Download the memcache Windows stable version, extract and put under a disk, such as in h:/wamp/www/php Api/memcache;
2. In the terminal (that is, the cmd command interface), enter the installation command:h:/wamp/www/php
A monitoring
To view the status of the Memcahe server, we usually use 2 commands
1) Telnet 127.0.0.1 11211
View Global
Stats
View Slab
Stats Slabs
View Item
Stats items
2) Vmstat 1-s M
Second tuning
According to the author's personal
This article mainly introduces the Laravel extended memcached cache driver implementation using the Aliyun OCS cache, this article extends a support SASL authentication mode memcached cache driver, need friends can refer to the following
Laravel is
By learning about the language of PHP, you know it is a powerful computer language that many programmers use to develop Web sites. Next, we will introduce the performance of PHP to develop efficient web systems.
PHP Development of efficient web
This is Fotolog's experience, the legendary site more than Flickr, Fotolog deployed 51 memcached instances on 21 servers, a total of 254G cache space available, cache up to 175G of content, this number is much larger than the database of many sites,
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.