InMemoryMediaKeysStorageBackend Class
A MediaKeysStorageBackend that keeps the sessions in memory.
public sealed class InMemoryMediaKeysStorageBackend : MediaKeysStorageBackend- Inheritance
MediaKeysStorageBackendInMemoryMediaKeysStorageBackend
Constructors
| Name | Description |
|---|---|
| InMemoryMediaKeysStorageBackend() |
InMemoryMediaKeysStorageBackend()
MediaKeysStorageBackend.cspublic InMemoryMediaKeysStorageBackend()No documentation is available.
Methods
| Name | Description |
|---|---|
| Delete(string, string, string) | Removes the data of a session. |
| Exists(string, string, string) | Returns whether data is stored for a session: the session IDs of the persistent sessions are unique within an origin over time. |
| Load(string, string, string) | Returns the data of a session, or null when no data is stored for the session. |
| Save(string, string, string, ReadOnlySpan<byte>) | Stores the data of a session, replacing the previous data. |
Delete(string, string, string)
MediaKeysStorageBackend.csExists(string, string, string)
MediaKeysStorageBackend.csReturns whether data is stored for a session: the session IDs of the persistent sessions are unique within an origin over time.
Load(string, string, string)
MediaKeysStorageBackend.csReturns the data of a session, or null when no data is stored for the session.
Save(string, string, string, ReadOnlySpan<byte>)
MediaKeysStorageBackend.csStores the data of a session, replacing the previous data.
public override void Save(string origin, string keySystem, string sessionId, ReadOnlySpan<byte> data)Parameters
originstring- The serialization of the storage key of the document.
keySystemstring- The key system.
sessionIdstring- The session ID.
dataReadOnlySpan<byte>- The data of the session.