Skip to content

Module: tile-loader

npm install @glazed/tile-loader

Classes

Type aliases

TileCache

Ƭ TileCache: Object

Type declaration

Name Type
clear () => any
delete (id: string) => any
get (id: string) => void | Promise<TileDocument<Record<string, any>>>
set (id: string, value: Promise<TileDocument<Record<string, any>>>) => any

TileKey

Ƭ TileKey: CommitID | StreamID | TileQuery | string


TileLoaderParams

Ƭ TileLoaderParams: Object

Type declaration

Name Type Description
cache? TileCache | boolean A supported cache implementation, true to use the default implementation or false to disable the cache (default)
ceramic CeramicApi A Ceramic client instance

TileQuery

Ƭ TileQuery: Omit<MultiQuery, "paths" | "atTime">

Omit path and atTime from MultiQuery as the cache needs to be deterministic based on the ID.

Functions

getDeterministicQuery

getDeterministicQuery(metadata): Promise<TileQuery>

Create a TileQuery for a determinitic TileDocument based on its metadata.

Parameters

Name Type
metadata TileMetadataArgs

Returns

Promise<TileQuery>