Function mentat_ffi::store_cache_attribute_bi_directional [] [src]

#[no_mangle]
pub extern "C" fn store_cache_attribute_bi_directional(
    store: *mut Store,
    attribute: *const c_char
) -> *mut ExternResult

Adds an attribute to the cache. store_cache_attribute_bi_directional caches entity in both available directions, forward and reverse.

Forward caches values for an attribute keyed by entity (i.e. find values and entities that have this attribute, or find values of attribute for an entity)

Reverse caches entities for an attribute keyed by value. (i.e. find entities that have a particular value for an attribute).