略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: 简介

2024-12-22

简介

Memcache模块提供了于memcached方便的面向过程及面向对象的接口,memcached是为了降低动态web应用 从数据库加载数据而产生的一种常驻进程缓存产品。

Memcache模块同时提供了一个session 处理器 (memcache).

更多关于memcached的信息请参见» http://www.memcached.org/.

add a noteadd a note

User Contributed Notes 1 note

up
-5
vidux dot me at gmail dot com
11 months ago
i have faced a error when install Memcached.
"Memcached" class not found. im using php 7.4 with apache server on ubuntu 20.04. this is how i fixed it.. hope someone can help it.

first i installed

sudo apt install memcached libmemcached-tools

then check service status
sudo systemctl status memcached

then install php-memcached
sudo apt-get install -y php-memcached

and lastly
sudo apt-get install php7.4-memcached

then restarted Apache:
sudo service apache2 restart

官方地址:https://www.php.net/manual/en/intro.memcache.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3