diff options
Diffstat (limited to 'lib/private/files/cache/wrapper/cachewrapper.php')
-rw-r--r-- | lib/private/files/cache/wrapper/cachewrapper.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/private/files/cache/wrapper/cachewrapper.php b/lib/private/files/cache/wrapper/cachewrapper.php index 39a6b63205b..1ce4f028c75 100644 --- a/lib/private/files/cache/wrapper/cachewrapper.php +++ b/lib/private/files/cache/wrapper/cachewrapper.php @@ -26,15 +26,16 @@ namespace OC\Files\Cache\Wrapper; use OC\Files\Cache\Cache; use OCP\Files\Cache\ICacheEntry; +use OCP\Files\Cache\ICache; class CacheWrapper extends Cache { /** - * @var \OC\Files\Cache\Cache + * @var \OCP\Files\Cache\ICache */ protected $cache; /** - * @param \OC\Files\Cache\Cache $cache + * @param \OCP\Files\Cache\ICache $cache */ public function __construct($cache) { $this->cache = $cache; @@ -159,6 +160,10 @@ class CacheWrapper extends Cache { $this->cache->move($source, $target); } + public function moveFromCache(ICache $sourceCache, $sourcePath, $targetPath) { + $this->cache->moveFromCache($sourceCache, $sourcePath, $targetPath); + } + /** * remove all entries for files that are stored on the storage from the cache */ |