EDataBook.BookMetaBackend.set_cache

### Method

# EDataBook BookMetaBackendset_cache

since: 3.26

#### Declaration [src]

    void
    e_book_meta_backend_set_cache (
      EBookMetaBackend* meta_backend,
      EBookCache* cache
    )

#### Description [src]

Sets the `cache` as the cache to be used by the `meta_backend`. By default, a cache.db in EBookBackend::cache-dir is created in the constructed method. This function can be used to override the default.

Note the `meta_backend` adds its own reference to the `cache`.

Available since: 3.26

Sets property | `EDataBook.BookMetaBackend:cache`

#### Parameters

`cache`

  Type: `EBookCache`

  An `EBookCache` to use.

  The data is owned by the caller of the method.