Creates a persistence adapter from a custom implementation.
Custom adapter implementing PersistenceAdapter interface
The validated adapter
const customAdapter = createPersistenceAdapter({ save: async (key, data) => { ... }, load: async (key) => { ... }, delete: async (key) => { ... }, listSaves: async (prefix) => { ... }, getSaveInfo: async (key) => { ... },}); Copy
const customAdapter = createPersistenceAdapter({ save: async (key, data) => { ... }, load: async (key) => { ... }, delete: async (key) => { ... }, listSaves: async (prefix) => { ... }, getSaveInfo: async (key) => { ... },});
Creates a persistence adapter from a custom implementation.