diff options
author | Robin Appelman <icewind@owncloud.com> | 2016-02-02 14:41:14 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2016-02-03 12:55:36 +0100 |
commit | f2bba59b79ab2595b78f7a28b0d5a95b80d6f40e (patch) | |
tree | 4f5498b3ce065c6179ff4256b7cea800a1cd0b09 /lib/public/files | |
parent | 2d1d89ee29e49412192b051412755610e0538198 (diff) | |
download | nextcloud-server-f2bba59b79ab2595b78f7a28b0d5a95b80d6f40e.tar.gz nextcloud-server-f2bba59b79ab2595b78f7a28b0d5a95b80d6f40e.zip |
split cache->insert from cache->put
Diffstat (limited to 'lib/public/files')
-rw-r--r-- | lib/public/files/cache/icache.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/public/files/cache/icache.php b/lib/public/files/cache/icache.php index e80c6fa2cb0..4ffb298a9e2 100644 --- a/lib/public/files/cache/icache.php +++ b/lib/public/files/cache/icache.php @@ -76,6 +76,7 @@ interface ICache { /** * store meta data for a file or folder + * This will automatically call either insert or update depending on if the file exists * * @param string $file * @param array $data @@ -87,6 +88,18 @@ interface ICache { public function put($file, array $data); /** + * insert meta data for a new file or folder + * + * @param string $file + * @param array $data + * + * @return int file id + * @throws \RuntimeException + * @since 9.0.0 + */ + public function insert($file, array $data); + + /** * update the metadata of an existing file or folder in the cache * * @param int $id the fileid of the existing file or folder |