內容簡介
更改了 wordpress-memcached-backend 後端, 以 Memcached ver. 2.2.0 PECL package 和 SASL 認證支援實現 WP Object Cache。
在 Heroku 和 AppFog 上原生支援 Memcached Cloud - 只需要添加 Memcached Cloud 增益。
鳴謝
我們使用了 wordpress-memcached-backend,所有的功勞都歸於 Zack Tollman。
範例
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'
);
外掛標籤
開發者團隊
原文外掛簡介
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'
);
