Home Backend Development PHP Tutorial php中memcached的使用,注:非memcache,该如何处理

php中memcached的使用,注:非memcache,该如何处理

Jun 13, 2016 am 11:48 AM
memcache memcached nbsp php win

php中memcached的使用,注:非memcache
现在的网络上都是memcache,但是现在需要弄memcached。
环境:windows
哪位可以提供memcached的相关资料或用法.(memcached.dll  ?  memcached.so)
网络上完全没有资料。
------解决方案--------------------
http://www.jb51.net/article/27366.htm
http://hi.baidu.com/andylu1988/item/ebb4087b15276d34714423b6

从apache迁移到nginx,php的memcache也迁移到了memcached,不过memcached有很多坑,源码里也有很多bug。
今年上半年我们浪渣已经从memcache迁移到了memcached,不过出现了n个诡异的事情,很多解决办法是直接改memcached的源码,以及不要使用最新版本等。

建议有经验的迁移,不然找问题找到你头晕。
------解决方案--------------------
具体的你用google搜,baidu不靠谱。你也可以去官方查看。我给你的链接地址也不是很详细的。
------解决方案--------------------
memcache分为服务端和客户端,php_memcache.dll相当于安装在php端的与服务端进行连接的中间件,它继承了与服务端相连接的各种接口给php语言调用;而服务端是运行在服务器上的一个应用,官方版本只有基于*nix下的源代码版本,win版的需要百度搜索找到才成。在测试的时候,需要启动服务端之后再用php进行访问
------解决方案--------------------
有区别么,何况php memcached的更新貌似停了很久了吧
------解决方案--------------------
你觉得你现在会用到那么多的东西么,现在基于memcache的缓存,基本上都是读取和保存两种操作,其它的方法用到的真不多。而且目前,基本上都在使用 memcache 的扩展,memcached的相对比较少;而且这个扩展依赖于libmemcache(d有没有忘记了)进行编译。相对来说,安装成本还是比较高的
------解决方案--------------------
memcached在linux下执行编译应该还好说,win下就比较麻烦了。以前想编译过来,不过c学的不好,搞不定~~ 不过,memcache 应该足够使用了~~ 可以考虑一些 redis ,目前这个比较火~
------解决方案--------------------
要不lz在linux下面使用lamp,然后编译一下memcached,查看使用情况吧。
我觉得web这一层应该变化不大,如果可以的话,将代码在win下面编译执行吧,,,
------解决方案--------------------
这两个区别很大吗 我是小白 不太清楚 只用过memcached

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

Repo: How To Revive Teammates
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

CakePHP Project Configuration CakePHP Project Configuration Sep 10, 2024 pm 05:25 PM

In this chapter, we will understand the Environment Variables, General Configuration, Database Configuration and Email Configuration in CakePHP.

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian Dec 24, 2024 pm 04:42 PM

PHP 8.4 brings several new features, security improvements, and performance improvements with healthy amounts of feature deprecations and removals. This guide explains how to install PHP 8.4 or upgrade to PHP 8.4 on Ubuntu, Debian, or their derivati

CakePHP Date and Time CakePHP Date and Time Sep 10, 2024 pm 05:27 PM

To work with date and time in cakephp4, we are going to make use of the available FrozenTime class.

CakePHP File upload CakePHP File upload Sep 10, 2024 pm 05:27 PM

To work on file upload we are going to use the form helper. Here, is an example for file upload.

CakePHP Routing CakePHP Routing Sep 10, 2024 pm 05:25 PM

In this chapter, we are going to learn the following topics related to routing ?

Discuss CakePHP Discuss CakePHP Sep 10, 2024 pm 05:28 PM

CakePHP is an open-source framework for PHP. It is intended to make developing, deploying and maintaining applications much easier. CakePHP is based on a MVC-like architecture that is both powerful and easy to grasp. Models, Views, and Controllers gu

CakePHP Creating Validators CakePHP Creating Validators Sep 10, 2024 pm 05:26 PM

Validator can be created by adding the following two lines in the controller.

How To Set Up Visual Studio Code (VS Code) for PHP Development How To Set Up Visual Studio Code (VS Code) for PHP Development Dec 20, 2024 am 11:31 AM

Visual Studio Code, also known as VS Code, is a free source code editor — or integrated development environment (IDE) — available for all major operating systems. With a large collection of extensions for many programming languages, VS Code can be c

See all articles