File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
packages/datafile-manager/src Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 1616
1717/**
1818 * An Interface to implement a persistent key value cache which supports strings as keys
19- * and string or JSON Object as value.
19+ * and JSON Object as value.
2020 */
2121export default interface PersistentKeyValueCache {
2222
2323 /**
2424 * Returns value stored against a key or null if not found.
2525 * @param key
2626 * @returns Promise which resolves with a
27- * 1. String if the value found is a string.
28- * 2. Object if value found was stored as a JSON Object.
29- * 3. null if the key does not exist in the cache.
27+ * 1. Object if value found was stored as a JSON Object.
28+ * 2. null if the key does not exist in the cache.
3029 */
3130 get ( key : string ) : Promise < Object | null >
3231
3332 /**
34- * Stores value in the persistent cache against a key
33+ * Stores Object in the persistent cache against a key
3534 * @param key
3635 * @param val
3736 */
You can’t perform that action at this time.
0 commit comments