Java and php share Memcached data storage problems and solutions PostedbyDemonat05: 57 am on18, the data written by Aug2010php cannot be read by java, problems and Solutions in storing data using Memcached shared by java and php
Problems and
Storage of php Data objects and structures 1. use serialization and deserialization functions ,? Then save the serialized result $ result to a file or database for persistent storage $ result = serialize ($ data );? $ Data = unserialize ($ resul php
Origin: in data-driven web development, the same data is often retrieved from the database repeatedly, which greatly increases the database load. Caching is a good solution to this problem. However, Asp.NetBut it is not flexible enough. In this
Environment preparation:
1. download and install the memcached server for Windows:
:
Http://www.splinedancer.com/memcached-win32/
Installation Method After download:
Decompress the ZIP file to a directory, such as D: \ dB \ memcached. the
Installation and use of memcache in the PHP environment, Phpmemcache
Memcache is a danga.com project, the first to serve LiveJournal, many people around the world use this cache project to build their own heavy load of the site, to share the
: http://blog.couchbase.com/memcached-windows-64-bit-pre-release-availableClick on the red circle:Unzip after download, such as extract to memcached folder in D driveOpen start-up run-->cmd call the command window and use the command to enter the
Http://baike.baidu.com/view/794242.htm? Fr = ala0_1
Memcached
What is memcached?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
Http://chen-gengjia.iteye.com/admin/blogs/new
Adodb: database connection component recommended by our leadersBsddb3: BerkeleyDB connection componentCheetah-1.0: I prefer this version of cheetah.Cherrypy: a web frameworkCtypes: used to call the
The following is a test of the distributed cache memcached software. I have been learning how to implement the cache of a Large-traffic website. I have read the memcached documents and have no time to test it, this article tests the distributed
Activation ~ Jar packages related to javaMail should be added to lib together with mail. jar (mail. jar and activation. jar) When javaMail is used. The jar package is responsible for the data source and type of mail.
ApacheActiveMQ ~ Apache is the
Document directory
3.1 ring hash space
3.2 map objects to the hash space
3.3 map the cache to the hash space
3.4 map objects to the cache
3.5 check cache changes
Today, the number of website users is huge, and the times when one server is
Document directory
1.3.1 create a project
1.3.2 add Configuration
1.3.3 client example
1.3.4 CRUD operation
1.3.5. stored as Json text
1.3.6. CouchbaseClient JSON Extension Method
Chapter 1. Departure 1.1. Get the server program
Download and
Http://hi.baidu.com/wuxincai/blog/item/a2c9e9f2450fe714b07ec5d5.html (RPM)
Origin: in data-driven web development, the same data is often retrieved from the database repeatedly, which greatly increases the database load. Caching is a good solution
Memcached is a distributed memory object cache system developed by danga.com (technical team operating livejournal) to reduce database load and improve performance in dynamic systems. The number of dynamic page views per second on the LJ is several
Currently, many large web systems use memchached as the cache system to reduce the load on database servers to increase the response speed.
Directory:
Introduction to memchached
Hash
Modulo
Consistent hash
Virtual node
Source code
Personal summary:To put it simply, CAS (check and set) is a mechanism to ensure concurrency consistency and belongs to the "optimistic lock" category. The principle is very simple: Take the version number, operate, compare the version number, and
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,
Official memcached: http://danga.com/memcached/
For more information about memcached, see memcached deep analysis.
Download Windows Server
: Http://code.jellycan.com/memcached/
Install memcache Server(You can also start it without installation)
1.
Common J2EE jar and open-source projects
Activation ~ Jar packages related to javamail should be added to lib together with mail. Jar (mail. jar and activation. Jar) When javamail is used. The jar package is responsible for the data source and
PrefaceBy accident, I saw the Chinese and English versions of this article, and it seemed not very convenient. So I spent half an hour, carefully sorting out an independent Chinese version, and recording it.
ProtocolThe memcached client uses the
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.