drush cache-getfor drush 8x


Fetch a cached object and display it.

drush cache-get

  • Aliases


    cache-get has 1 alias/es:


    drush cg

  • Arguments


    cache-get accepts 2 argument/s:


    cid : The id of the object to fetch.

    bin : Optional. The cache bin to fetch from.

  • Options


    cache-get accepts 10 option/s:


    --format : Select output format. Available: json, var_export, yaml. Default is json.

    --fields : Fields to output.

    --list-separator : Specify how elements in a list should be separated. In lists of lists, this applies to the elements in the inner lists.

    --line-separator : In nested lists of lists, specify how the outer lists ("lines") should be separated.

    --field-labels : Add field labels before first line of data. Default is on; use --no-field-labels to disable.

    --format=json : Javascript Object Notation.

    --format=php : A serialized php string.

    --format=print-r : Output via php print_r function.

    --format=var_export : An array in executable php format.

    --format=yaml : Yaml output format.

  • Examples


    Display the data for the cache id "schema" from the "cache" bin.

    drush cache-get schema

    Display the data for the cache id "update_available_releases" from the "update" bin.

    drush cache-get update_available_releases update

  • Comments


    comments powered by Disqus