drush cache-set

Cache an object expressed in JSON or var_export() format.

Drush Command

drush cache-set


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.


drush cs


--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.