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

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 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://tw.wordpress.org/plugins/redis-object-cache/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/redis-object-cache/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/redis-object-cache/#installation)
 * [開發資訊](https://tw.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 或更新版本 **
 *  已測試相容的 WordPress 版本 **3.9.40**
 *  語言
 * [English (US)](https://wordpress.org/plugins/redis-object-cache/)
 * 標籤:
 * [cache](https://tw.wordpress.org/plugins/tags/cache/)[object cache](https://tw.wordpress.org/plugins/tags/object-cache/)
   [redis](https://tw.wordpress.org/plugins/tags/redis/)
 *  [進階檢視](https://tw.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/)