sylvia_iot_broker::models

Function new_cache

Source
pub async fn new_cache(
    opts: &CacheConnOptions,
    model: &Arc<dyn Model>,
) -> Result<Arc<dyn Cache>, Box<dyn StdError>>
Expand description

To create the database cache with the specified database implementation.