aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Cache
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Cache')
-rw-r--r--lib/private/Cache/CappedMemoryCache.php9
-rw-r--r--lib/private/Cache/File.php27
2 files changed, 0 insertions, 36 deletions
diff --git a/lib/private/Cache/CappedMemoryCache.php b/lib/private/Cache/CappedMemoryCache.php
index 2c2eab3209a..88a2e5780fa 100644
--- a/lib/private/Cache/CappedMemoryCache.php
+++ b/lib/private/Cache/CappedMemoryCache.php
@@ -29,19 +29,10 @@ class CappedMemoryCache implements ICache, \ArrayAccess {
return isset($this->cache[$key]);
}
- /**
- * @return ?T
- */
public function get($key) {
return $this->cache[$key] ?? null;
}
- /**
- * @param string $key
- * @param T $value
- * @param int $ttl
- * @return bool
- */
public function set($key, $value, $ttl = 0): bool {
if (is_null($key)) {
$this->cache[] = $value;
diff --git a/lib/private/Cache/File.php b/lib/private/Cache/File.php
index 10152d0966b..4e082f4e4d7 100644
--- a/lib/private/Cache/File.php
+++ b/lib/private/Cache/File.php
@@ -43,11 +43,6 @@ class File implements ICache {
}
}
- /**
- * @param string $key
- * @return mixed|null
- * @throws \OC\ForbiddenException
- */
public function get($key) {
$result = null;
if ($this->hasKey($key)) {
@@ -72,13 +67,6 @@ class File implements ICache {
return $result;
}
- /**
- * @param string $key
- * @param mixed $value
- * @param int $ttl
- * @return bool|mixed
- * @throws \OC\ForbiddenException
- */
public function set($key, $value, $ttl = 0) {
$storage = $this->getStorage();
$result = false;
@@ -101,11 +89,6 @@ class File implements ICache {
return $result;
}
- /**
- * @param string $key
- * @return bool
- * @throws \OC\ForbiddenException
- */
public function hasKey($key) {
$storage = $this->getStorage();
if ($storage && $storage->is_file($key) && $storage->isReadable($key)) {
@@ -114,11 +97,6 @@ class File implements ICache {
return false;
}
- /**
- * @param string $key
- * @return bool|mixed
- * @throws \OC\ForbiddenException
- */
public function remove($key) {
$storage = $this->getStorage();
if (!$storage) {
@@ -127,11 +105,6 @@ class File implements ICache {
return $storage->unlink($key);
}
- /**
- * @param string $prefix
- * @return bool
- * @throws \OC\ForbiddenException
- */
public function clear($prefix = '') {
$storage = $this->getStorage();
if ($storage and $storage->is_dir('/')) {