Title: Redis Object Cache
Author: Eric Mann
Published: <strong>2014 年 3 月 30 日</strong>
Last modified: 2014 年 3 月 30 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/redis-object-cache.svg)

# Redis Object Cache

 作者：[Eric Mann](https://profiles.wordpress.org/ericmann/)

[下载](https://downloads.wordpress.org/plugin/redis-object-cache.1.0.zip)

 * [详情](https://cn.wordpress.org/plugins/redis-object-cache/#description)
 * [评价](https://cn.wordpress.org/plugins/redis-object-cache/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/redis-object-cache/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/redis-object-cache/#developers)

 [支持](https://wordpress.org/support/plugin/redis-object-cache/)

## 描述

Object caching backend using Redis for persistent storage. Implements all methods
specified by WordPress Core. Supports multisite.

The plugin supports both the [Redis PECL module](http://pecl.php.net/package/redis)
and the [Predis library](https://github.com/nrk/predis) to connect to Redis.

**You must install the Redis server before using this plugin!**

## 安装

 1. Install and configure Redis. There is a good tutorial [here](http://www.saltwebsites.com/2012/install-redis-245-service-centos-6).
 2. Install the [Redis PECL module](http://pecl.php.net/package/redis) or place the
    Predis library in the `/wp-content/predis` directory.
 3. Add `object-cache.php` to the `wp-content` directory. It is a drop-in file, not
    a plugin, so it belongs in the `wp-content` directory, not the `plugins` directory.
 4. By default, the script will connect to Redis at 127.0.0.1:6379. See the _Connecting
    to Redis_ FAQ for further options.

## 常见问题

  Connecting to Redis

By default, the plugin uses `127.0.0.1` and `6379` as the default host and port 
when creating a new client instance; the default database of `0` is also used. Three
constants are provided to override these default values.

Specify `WP_REDIS_BACKEND_HOST`, `WP_REDIS_BACKEND_PORT`, and `WP_REDIS_BACKEND_DB`
to set the necessary, non-default connection values for your Redis instance.

  Prefixing Cache Keys

The constant `WP_CACHE_KEY_SALT` is provided to add a prefix to all cache keys used
by the plugin. If running two single instances of WordPress from the same Redis 
instance, this constant could be used to avoid overlap in cache keys. Note that 
special handling is not needed for WordPress Multisite.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Redis Object Cache」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Eric Mann ](https://profiles.wordpress.org/ericmann/)
 *   [ Erick Hitter ](https://profiles.wordpress.org/ethitter/)

[帮助将「Redis Object Cache」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/redis-object-cache)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/redis-object-cache/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/redis-object-cache/)，或通过[RSS](https://plugins.trac.wordpress.org/log/redis-object-cache/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/redis-object-cache/)。

## 更新日志

#### 1.0

 * Initial public release.

## 额外信息

 *  版本 **1.0**
 *  最后更新：**12 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.0.1 或更高版本 **
 *  已测试的最高版本为 **3.9.40**
 *  语言
 * [English (US)](https://wordpress.org/plugins/redis-object-cache/)
 * 标签
 * [cache](https://cn.wordpress.org/plugins/tags/cache/)[object cache](https://cn.wordpress.org/plugins/tags/object-cache/)
   [redis](https://cn.wordpress.org/plugins/tags/redis/)
 *  [高级视图](https://cn.wordpress.org/plugins/redis-object-cache/advanced/)

## 评级

 1 星（最高 5 星）。

 *  [  0 条 5 星评价     ](https://wordpress.org/support/plugin/redis-object-cache/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/redis-object-cache/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/redis-object-cache/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/redis-object-cache/reviews/?filter=2)
 *  [  1 条 1 星评价     ](https://wordpress.org/support/plugin/redis-object-cache/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/redis-object-cache/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/redis-object-cache/reviews/)

## 贡献者

 *   [ Eric Mann ](https://profiles.wordpress.org/ericmann/)
 *   [ Erick Hitter ](https://profiles.wordpress.org/ethitter/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/redis-object-cache/)