neuroarch.na.NeuroArch.set

NeuroArch.set(cls, name, value, data_source)[source]

Set an entry in the local database cache.

Parameters:
  • cls (str) – The class type of the record, (e.g., ‘Neuropil’)

  • name (str) – The unique name of the node under the data_source. It will be used to key the cached item.

  • value (models.Node or subclasses) – The object for the database record to be cached.

  • data_source (models.DataSource) – The DataSource under which name can be uniquely found.