{"id":30363,"date":"2014-07-02T06:48:07","date_gmt":"2014-07-02T06:48:07","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/memcached-cloud\/"},"modified":"2014-07-07T12:03:32","modified_gmt":"2014-07-07T12:03:32","slug":"memcached-cloud","status":"publish","type":"plugin","link":"https:\/\/tw.wordpress.org\/plugins\/memcached-cloud\/","author":13915743,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0","stable_tag":"trunk","tested":"3.9.40","requires":"3.4","requires_php":"","requires_plugins":"","header_name":"Memcached Cloud","header_author":"Redis Labs- uses the wordpress-memcached-backend project (https:\/\/github.com\/tollmanz\/wordpress-memcached-backend), by Zack Tollman","header_description":"","assets_banners_color":"","last_updated":"2014-07-07 12:03:32","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":0,"downloads":2494,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[42764,146,11135,42762,42763],"plugin_category":[52],"plugin_contributors":[129935],"plugin_business_model":[],"class_list":["post-30363","plugin","type-plugin","status-publish","hentry","plugin_tags-binary-protocol","plugin_tags-cache","plugin_tags-memcached","plugin_tags-memcached-cloud","plugin_tags-sasl","plugin_category-performance","plugin_contributors-redis-labs","plugin_committers-redis-labs"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/memcached-cloud.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Changed the <a href=\"https:\/\/github.com\/tollmanz\/wordpress-memcached-backend\">wordpress-memcached-backend<\/a> backend to use <a href=\"http:\/\/pecl.php.net\/package\/memcached\">Memcached ver. 2.2.0 PECL package<\/a> with SASL authentication support, to implement WP Object Cache.<\/p>\n\n<p>Inehernt support for <a href=\"http:\/\/redislabs.com\/memcached-cloud\">Memcached Cloud<\/a> on Heroku and AppFog- just add the Memcached Cloud add-on.<\/p>\n\n<h3>Credits<\/h3>\n\n<p>We used the <a href=\"https:\/\/github.com\/tollmanz\/wordpress-memcached-backend\">wordpress-memcached-backend<\/a>, so all credit goes to Zack Tollman.<\/p>\n\n<h3>Examples<\/h3>\n\n<p>1.<\/p>\n\n<pre><code>wp_cache_set('key', 'val');  \nwp_cache_get('key');\n<\/code><\/pre>\n\n<p>2.<\/p>\n\n<pre><code>wp_cache_set_multi ( \n    array ( 'key1' =&gt; 'val1', 'key2' =&gt; 'val2', 'key3' =&gt; 'val3' ), \n    'group1' \n);  \n\nwp_cache_get_multi ( \n    array ( 'key1', 'key2' ), \n    'group1' \n);\n<\/code><\/pre>\n\n<!--section=installation-->\n<ol>\n<li><p>Make sure you have <a href=\"http:\/\/libmemcached.org\/libMemcached.html\">libmemcached<\/a> installed, built with SASL. See the <a href=\"http:\/\/il1.php.net\/manual\/en\/memcached.requirements.php\">Memcached Requirements<\/a>.<\/p><\/li>\n<li><p>Install the <a href=\"http:\/\/il1.php.net\/manual\/en\/memcached.installation.php\">Memcached ver. 2.2.0 PECL package<\/a>.<\/p><\/li>\n<li><p>Define the Memcached servers and SASL credentials in your wp-config.php, as follows:<\/p>\n\n<pre><code>global $memcached_servers;\n$memcached_servers = array( array( 'host', port ) );\n\nglobal $memcached_username;\n$memcached_username = 'sasl_username';\n\nglobal $memcached_password;\n$memcached_password = 'sasl_password';\n<\/code><\/pre><\/li>\n<\/ol>\n\n<p><strong>Note:<\/strong> If running on Heroku or AppFog, just install the Memcached Cloud add-on and your conifguration environment variables will be set.<\/p>\n\n<ol>\n<li>Move object-cache.php to wp-content\/object-cache.php<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Use Memcached with SASL authentication to implement WP Object Cache","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/30363","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=30363"}],"author":[{"embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/redis-labs"}],"wp:attachment":[{"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=30363"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=30363"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=30363"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=30363"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=30363"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=30363"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}