Function createWorkersKVSessionStorage
- createWorkersKVSessionStorage<Data, FlashData>(__namedParameters): SessionStorage<Data, FlashData>
Type Parameters
- Data = SessionData
- FlashData = Data
Parameters
- __namedParameters: WorkersKVSessionStorageOptions
Creates a SessionStorage that stores session data in the Clouldflare KV Store.
The advantage of using this instead of cookie session storage is that KV Store may contain much more data than cookies.