# salt.modules.mine

The function cache system allows for data to be stored on the master so it can be easily read by other minions

`salt.modules.mine.` `delete`(fun)

  Remove specific function contents of minion. Returns True on success.

  CLI Example:

      salt '*' mine.delete 'network.interfaces'

`salt.modules.mine.` `flush`()

  Remove all mine contents of minion. Returns True on success.

  CLI Example:

      salt '*' mine.flush

`salt.modules.mine.` `get`(tgt, fun, expr_form='glob')

  Get data from the mine based on the target, function and expr_form

  Targets can be matched based on any standard matching system that can be matched on the master via these keywords:

      glob
      pcre
      grain
      grain_pcre

  CLI Example:

      salt '*' mine.get '*' network.interfaces
      salt '*' mine.get 'os:Fedora' network.interfaces grain

`salt.modules.mine.` `send`(func, *args, **kwargs)

  Send a specific function to the mine.

  CLI Example:

      salt '*' mine.send network.interfaces eth0

`salt.modules.mine.` `update`(clear=False)

  Execute the configured functions and send the data back up to the master The functions to be executed are merged from the master config, pillar and minion config under the option "function_cache":

      mine_functions:
        network.ip_addrs:
          - eth0
        disk.usage: []

  The function cache will be populated with information from executing these functions

  CLI Example:

      salt '*' mine.update

Current Salt release: 0.17.1

#### Previous topic

salt.modules.mdadm

#### Next topic

salt.modules.modjk

### Quick search

Enter search terms or a module, class or function name.

### Upcoming SaltStack Events

My conferences on Lanyrd