drush cache-setfor drush 8x
Cache an object expressed in JSON or var_export() format.
drush cache-set
-
Aliases
cache-set has 1 alias/es:
drush cs
-
Arguments
cache-set accepts 5 argument/s:
cid : The id of the object to set.
data : The object to set in the cache. Use '-' to read the object from STDIN.
bin : Optional. The cache bin to store the object in.
expire : Optional. CACHE_PERMANENT, CACHE_TEMPORARY, or a Unix timestamp.
tags : An array of cache tags.
-
Options
cache-set accepts 2 option/s:
--format : Format to parse the object. Use "string" for string (default), and "json" for JSON.
--cache-get : If the object is the result a previous fetch from the cache, only store the value in the "data" property of the object in the cache.
-
Comments
comments powered by Disqus