22.25.1.1. salt.runners.cache

Return cached data from minions

salt.runners.cache.clear_all(tgt=None, expr_form='glob')

Clear the cached pillar, grains, and mine data of the targeted minions

CLI Example:

salt-run cache.clear_all
salt.runners.cache.clear_grains(tgt=None, expr_form='glob')

Clear the cached grains data of the targeted minions

CLI Example:

salt-run cache.clear_grains
salt.runners.cache.clear_mine(tgt=None, expr_form='glob')

Clear the cached mine data of the targeted minions

CLI Example:

salt-run cache.clear_mine
salt.runners.cache.clear_mine_func(tgt=None, expr_form='glob', clear_mine_func=None)

Clear the cached mine function data of the targeted minions

CLI Example:

salt-run cache.clear_mine_func tgt='*' clear_mine_func='network.interfaces'
salt.runners.cache.clear_pillar(tgt=None, expr_form='glob')

Clear the cached pillar data of the targeted minions

CLI Example:

salt-run cache.clear_pillar
salt.runners.cache.grains(tgt=None, expr_form='glob', **kwargs)

Return cached grains of the targeted minions

CLI Example:

salt-run cache.grains
salt.runners.cache.mine(tgt=None, expr_form='glob', **kwargs)

Return cached mine data of the targeted minions

CLI Example:

salt-run cache.mine
salt.runners.cache.pillar(tgt=None, expr_form='glob', **kwargs)

Return cached pillars of the targeted minions

CLI Example:

salt-run cache.pillar

Docs for previous releases are available on salt.rtfd.org.

Latest Salt release: 2014.1.13

Try the shiny new release candidate of Salt, v2014.7.0rc6! More info here.

Previous topic

22.25.1.20. salt.runners.winrepo

Next topic

22.25.1.2. salt.runners.cloud

SaltStack News

Upcoming SaltStack events, webinars and local meet ups and user groups.