code: def store(bank, key, data):
      '''
      Store a key value.
      '''
      c_key = '{0}/{1}'.format(bank, key)
      try:
          c_data = __context__['serial'].dumps(data)
          api.kv.put(c_key, c_data)
      except Exception as exc:
          raise SaltCacheError(
              'There was an error writing the key, {0}: {1}'.format(
                  c_key, exc
              )
          f store(bank, key, data):
      '''
      Store a key value.
      '''
      c_key = '{0}/{1}'.format(bank, key)
      try:
          c_data = __context__['serial'].dumps(data)
          api.kv.put(c_key, c_data)
      except Exception as exc:
          raise SaltCacheError(
              'There was an error writing the key, {0}: {1}'.format(
                  c_key, exc
              )
          )
docs: Store a key value.