From cdc8c40d60e874e1214f33b1c8f15d923ed90873 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 1 Dec 2015 16:41:28 +0100 Subject: Add public cache interface --- lib/private/files/cache/cache.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/private/files/cache') diff --git a/lib/private/files/cache/cache.php b/lib/private/files/cache/cache.php index 7a976e18888..bb2da63fc46 100644 --- a/lib/private/files/cache/cache.php +++ b/lib/private/files/cache/cache.php @@ -33,6 +33,7 @@ namespace OC\Files\Cache; +use OCP\Files\Cache\ICache; use \OCP\Files\IMimeTypeLoader; use OCP\IDBConnection; @@ -46,7 +47,7 @@ use OCP\IDBConnection; * - Updater: listens to changes made to the filesystem inside of the ownCloud instance and updates the cache where needed * - ChangePropagator: updates the mtime and etags of parent folders whenever a change to the cache is made to the cache by the updater */ -class Cache { +class Cache implements ICache { const NOT_FOUND = 0; const PARTIAL = 1; //only partial data available, file not cached in the database const SHALLOW = 2; //folder in cache, but not all child files are completely scanned -- cgit v1.2.3