Home > zotero-plugin-toolkit > LargePrefHelper
Helper class for storing large amounts of data in Zotero preferences.
Signature:
export declare class LargePrefHelper extends BasicTool
Extends: BasicTool
The allowed data length for a single preference is at least 100k, but if this can grow infinitely, like an Array or an Object, there will be significant performance problems.
This class stores the keys of data in a single preference as a JSON string of Array, and stores the values of data in separate preferences.
You can either use the class as a normal object with asObject()
, or use the methods to access the data.
Constructor |
Modifiers |
Description |
---|---|---|
Constructs a new instance of the |
Method |
Modifiers |
Description |
---|---|---|
Get the Map that stores the data. | ||
Get the object that stores the data. | ||
Delete a key. | ||
Get the keys of the data. | ||
Get the value of a key. | ||
Check if a key exists. | ||
Add a key. | ||
Set the keys of the data. | ||
Set the value of a key. |