diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-12-01 16:41:28 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2016-01-14 12:54:42 +0100 |
commit | cdc8c40d60e874e1214f33b1c8f15d923ed90873 (patch) | |
tree | 5f016035b2b7ac20a39eee5f917c1043344faba5 /lib/private/files/cache | |
parent | 8f89e3520d74e1805dc46947742a17683ece6ca7 (diff) | |
download | nextcloud-server-cdc8c40d60e874e1214f33b1c8f15d923ed90873.tar.gz nextcloud-server-cdc8c40d60e874e1214f33b1c8f15d923ed90873.zip |
Add public cache interface
Diffstat (limited to 'lib/private/files/cache')
-rw-r--r-- | lib/private/files/cache/cache.php | 3 |
1 files changed, 2 insertions, 1 deletions
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 |