{"repo":"wp-cli/cache-command","free":true,"listed":false,"github":"https://github.com/wp-cli/cache-command","clone":"git clone https://github.com/wp-cli/cache-command.git","description":"Manages object and transient caches.","language":"Gherkin","stars":16,"topics":["wp-cli","wp-cli-package","cache","wordpress","cli","hacktoberfest"],"license":"MIT","category":"cli-tools","readme_excerpt":"wp-cli/cache-command ==================== Manages object and transient caches. Quick links: Using Installing Contributing Support Using This package implements the following commands: wp cache Adds, removes, fetches, and flushes the WP Object Cache object. wp cache By default, the WP Object Cache exists in PHP memory for the length of the request (and is emptied at the end). Use a persistent object cache drop-in to persist the object cache between requests. Read the documentation for more detail. EXAMPLES # Set cache. $ wp cache set my key my value my group 300 Success: Set object 'my key' in group 'my group'. # Get cache. $ wp cache get my key my group my value wp cache add Adds a value to the object cache. wp cache add [ ] [ ] Errors if a value already exists for the key, which means the value can't be added. OPTIONS Cache key. Value to add to the key. [ ] Method for grouping data within the cache which allows the same key to be used across groups. --- default: default --- [ ] Define how long to keep the value, in seconds. 0 means as long as possible. --- default: 0 --- EXAMPLES # Add cache. $ wp cache add my key my value my group 300 Success: Added object 'my key' in group 'my group'. wp cache decr Decrements a value in the object cache. wp cache decr [ ] [ ] Errors if the value can't be decremented. OPTIONS Cache key. [ ] The amount by which to decrement the item's value. --- default: 1 --- [ ] Method for grouping data within the cache which allows the same key to be used","default_branch":null,"files":null,"tree":[],"storefront":"/r/wp-cli","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/wp-cli/cache-command/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}