Downloads
Documentation
Get Involved
Help
Getting Started
Introduction
A simple tutorial
Language Reference
Basic syntax
Types
Variables
Constants
Expressions
Operators
Control Structures
Functions
Classes and Objects
Namespaces
Enumerations
Errors
Exceptions
Fibers
Generators
Attributes
References Explained
Predefined Variables
Predefined Exceptions
Predefined Interfaces and Classes
Predefined Attributes
Context options and parameters
Supported Protocols and Wrappers
Security
Introduction
General considerations
Installed as CGI binary
Installed as an Apache module
Session Security
Filesystem Security
Database Security
Error Reporting
User Submitted Data
Hiding PHP
Keeping Current
Features
HTTP authentication with PHP
Cookies
Sessions
Dealing with XForms
Handling file uploads
Using remote files
Connection handling
Persistent Database Connections
Command line usage
Garbage Collection
DTrace Dynamic Tracing
Function Reference
Affecting PHP's Behaviour
Audio Formats Manipulation
Authentication Services
Command Line Specific Extensions
Compression and Archive Extensions
Cryptography Extensions
Database Extensions
Date and Time Related Extensions
File System Related Extensions
Human Language and Character Encoding Support
Image Processing and Generation
Mail Related Extensions
Mathematical Extensions
Non-Text MIME Output
Process Control Extensions
Other Basic Extensions
Other Services
Search Engine Extensions
Server Specific Extensions
Session Extensions
Text Processing
Variable and Type Related Extensions
Web Services
Windows Only Extensions
XML Manipulation
GUI Extensions
Keyboard Shortcuts
?
This help
j
Next menu item
k
Previous menu item
g p
Previous man page
g n
Next man page
G
Scroll to bottom
g g
Scroll to top
g h
Goto homepage
g s
Goto search
(current page)
/
Focus search box
简介 »
« memcache_debug
PHP 手册
函数参考
其它服务
Change language:
English
Chinese (Simplified)
Other
Memcached
简介
安装/配置
需求
安装
运行时配置
资源类型
预定义常量
超时时间
回调
结果回调
通读缓存回调
Sessions支持
Memcached
— Memcached 类
Memcached::add
— 向新 key 添加元素
Memcached::addByKey
— 在特定服务器上向新 key 添加元素
Memcached::addServer
— 向服务器池增加服务器
Memcached::addServers
— 向服务器池中增加多台服务器
Memcached::append
— 向已存在元素追加数据
Memcached::appendByKey
— 向指定服务器上已存在元素追加数据
Memcached::cas
— 比较并交换值
Memcached::casByKey
— 在指定服务器上比较并交换值
Memcached::__construct
— 创建 Memcached 实例
Memcached::decrement
— 减小数值元素的值
Memcached::decrementByKey
— Decrement numeric item's value, stored on a specific server
Memcached::delete
— 删除元素
Memcached::deleteByKey
— 从指定的服务器删除元素
Memcached::deleteMulti
— Delete multiple items
Memcached::deleteMultiByKey
— Delete multiple items from a specific server
Memcached::fetch
— 读取下一个结果
Memcached::fetchAll
— 读取所有剩余结果
Memcached::flush
— 作废缓存中的所有元素
Memcached::get
— 检索元素
Memcached::getAllKeys
— Gets the keys stored on all the servers
Memcached::getByKey
— 从特定的服务器检索元素
Memcached::getDelayed
— 请求多个元素
Memcached::getDelayedByKey
— 从指定的服务器上请求多个元素
Memcached::getMulti
— 检索多个元素
Memcached::getMultiByKey
— 从特定服务器检索多个元素
Memcached::getOption
— 获取 Memcached 的选项值
Memcached::getResultCode
— 返回最后一次操作的结果代码
Memcached::getResultMessage
— 返回最后一次操作的结果描述消息
Memcached::getServerByKey
— 获取一个 key 所映射的服务器信息
Memcached::getServerList
— 获取服务器池中的服务器列表
Memcached::getStats
— 获取服务器池的统计信息
Memcached::getVersion
— 获取服务器池中所有服务器的版本信息
Memcached::increment
— 增加数值元素的值
Memcached::incrementByKey
— Increment numeric item's value, stored on a specific server
Memcached::isPersistent
— Check if a persitent connection to memcache is being used
Memcached::isPristine
— Check if the instance was recently created
Memcached::prepend
— 向一个已存在的元素前面追加数据
Memcached::prependByKey
— 在指定服务器上追加数据到已存在的元素
Memcached::quit
— 关闭所有打开的链接
Memcached::replace
— 替换已存在 key 下的元素
Memcached::replaceByKey
— 在指定服务器上,替换已存在 key 下的元素
Memcached::resetServerList
— Clears all servers from the server list
Memcached::set
— 存储一个元素
Memcached::setByKey
— 将元素存储到指定的服务器上
Memcached::setMulti
— 存储多个元素
Memcached::setMultiByKey
— 在指定服务器存储多个元素
Memcached::setOption
— 设置一个 memcached 选项
Memcached::setOptions
— Set Memcached options
Memcached::setSaslAuthData
— Set the credentials to use for authentication
Memcached::touch
— Set a new expiration on an item
Memcached::touchByKey
— Set a new expiration on an item on a specific server
MemcachedException
— MemcachedException类
Improve This Page
Learn How To Improve This Page
•
Submit a Pull Request
•
Report a Bug
+
add a note
User Contributed Notes
There are no user contributed notes for this page.