Build an identifier which uniquely represents a medium for a service.
Get the value for the provided key from the storage. This method returns a StoreElementProxy proxied object which can interact with the underlying value directly.
If there's no value for the given key the provided default value is used. If no default value is provided it defaults to an empty object. The default value is not immediately saved to the storage. However if you edit an attribute of the StoreElementProxy object the saved value will include the default.
Access to the storage is "locked" using the key. This means that if you start multiple get requests at the same time they will all finish at the same time and resolve to the same StoreElementProxy object. This is to provide consistency and ensure that the Store._cache cannot be overwritten, potentially creating a dead StoreElement that isn't updated.
Get a StoreElementProxy for every non-primitive element in the storage.
Get the stored SubscribedAnimes object.
Load the Config from the storage.
Get thhe StoredServiceAnimes for a given service from the storage.
Store the given value under the given key in the storage.
Create an identifier for the language settings.
The language identifier looks like this: <language>_<dub | sub>
Create an identifier for the language settings.
The language identifier looks like this: <language>_<dub | sub>
Generated using TypeDoc
An interface between the extension storage and Dolos. It uses StoreElement or rather StoreElementProxy objects to provide an easy-to-work-with API.
Each Store instance manages its own cache, but there won't be a problem if you use multiple instances as the cache is kept up-to-date with the storage.