這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Memcached Cloud

外掛說明

Changed the wordpress-memcached-backend backend to use Memcached ver. 2.2.0 PECL package with SASL authentication support, to implement WP Object Cache.

Inehernt support for Memcached Cloud on Heroku and AppFog- just add the Memcached Cloud add-on.

Credits

We used the wordpress-memcached-backend, so all credit goes to Zack Tollman.

Examples

1.

wp_cache_set('key', 'val');  
wp_cache_get('key');

2.

wp_cache_set_multi ( 
    array ( 'key1' => 'val1', 'key2' => 'val2', 'key3' => 'val3' ), 
    'group1' 
);  

wp_cache_get_multi ( 
    array ( 'key1', 'key2' ), 
    'group1' 
);

安裝方式

  1. Make sure you have libmemcached installed, built with SASL. See the Memcached Requirements.

  2. Install the Memcached ver. 2.2.0 PECL package.

  3. Define the Memcached servers and SASL credentials in your wp-config.php, as follows:

    global $memcached_servers;
    $memcached_servers = array( array( 'host', port ) );
    
    global $memcached_username;
    $memcached_username = 'sasl_username';
    
    global $memcached_password;
    $memcached_password = 'sasl_password';
    

Note: If running on Heroku or AppFog, just install the Memcached Cloud add-on and your conifguration environment variables will be set.

  1. Move object-cache.php to wp-content/object-cache.php

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Memcached Cloud〉的開發相關工作。

參與者

將〈Memcached Cloud〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0

  • Initial release