DurableObjectStoragePersister
The DurableObjectStoragePersister interface represents a Persister that lets you save and load Store data to and from Cloudflare Durable Object storage.
You should use the createDurableObjectStoragePersister function to create a DurableObjectStoragePersister object, most likely within the createPersister method of a WsServerDurableObject.
It is a minor extension to the Persister interface and simply provides an extra getStorage method for accessing a reference to the storage that the Store is being persisted to.
Since
v5.4.0