Storage

Set Storage Indexed DB

Write a record to an IndexedDB object store.

Write a record to an IndexedDB object store.

Writes or updates a record in an IndexedDB database, identified by database name (path), object store name (storeName), and record key.

Examples

MagicHelper: MagicHelper utility library

GPAL.MagicHelper.SetStorage(WebsiteStorageType.indexedDb, data, domain: null, path: "myDatabase", key: "record1", storeName: "myObjectStore");

REST Client: Direct REST/HTTP client

GPAL.OttoMagicClient.WithEndpoint(ApiEndpoint.SetStorageIndexedDb).WithStorageType(WebsiteStorageType.indexedDb).WithStoragePath("myDatabase").WithStorageStoreName("myObjectStore").WithStorageKey("record1").WithValue(data).Execute();