aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Collaboration
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2022-08-12 18:22:52 +0200
committerJulius Härtl <jus@bitgrid.net>2022-08-31 16:20:06 +0200
commit31be855522fe68956cb38aaca2a9544c5a75f230 (patch)
tree210610271927db18bd109c1b07311926d1f70984 /lib/public/Collaboration
parent9d9c7f4b7557f7fa8dc5c5ad3925261a1efb966c (diff)
downloadnextcloud-server-31be855522fe68956cb38aaca2a9544c5a75f230.tar.gz
nextcloud-server-31be855522fe68956cb38aaca2a9544c5a75f230.zip
Implement reference provider based caching
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/public/Collaboration')
-rw-r--r--lib/public/Collaboration/Reference/IReferenceProvider.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/public/Collaboration/Reference/IReferenceProvider.php b/lib/public/Collaboration/Reference/IReferenceProvider.php
index 232874709c2..ff0bfc8ed47 100644
--- a/lib/public/Collaboration/Reference/IReferenceProvider.php
+++ b/lib/public/Collaboration/Reference/IReferenceProvider.php
@@ -23,5 +23,8 @@
namespace OCP\Collaboration\Reference;
interface IReferenceProvider {
+ public function matchReference(string $referenceText): bool;
public function resolveReference(string $referenceText): ?IReference;
+ public function isGloballyCachable(): bool;
+ public function getCacheKey(string $referenceId): string;
}