Skip to content

Commit a785c7c

Browse files
author
Sebastian Kippe
committed
Document caching.checkPath() as public function
1 parent f0d06fd commit a785c7c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

doc/js-api/caching.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,18 @@ List of functions
7070
7171
remoteStorage.caching.set('/bookmarks/archive/', 'SEEN');
7272
73+
.. autofunction:: Caching#checkPath(path)
74+
:short-name:
75+
76+
Example:
77+
78+
.. code:: javascript
79+
80+
remoteStorage.caching.checkPath('documents/').then(strategy => {
81+
console.log(`caching strategy for 'documents/': ${strategy}`));
82+
// "caching strategy for 'documents/': SEEN"
83+
});
84+
7385
.. autofunction:: Caching#reset
7486
:short-name:
7587

0 commit comments

Comments
 (0)