summaryrefslogtreecommitdiffstats
path: root/lib/private/Cache
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2016-11-03 14:35:44 +0100
committerRobin Appelman <robin@icewind.nl>2016-11-03 16:00:28 +0100
commit95ac9f60ce4dda0302b108b9caf4e53f571db713 (patch)
tree538a5307a98c2912ca831819ec52e7f723ee6128 /lib/private/Cache
parent1c52d878216a430c1214147ec1aa8e9aa0f6ad43 (diff)
downloadnextcloud-server-95ac9f60ce4dda0302b108b9caf4e53f571db713.tar.gz
nextcloud-server-95ac9f60ce4dda0302b108b9caf4e53f571db713.zip
Cap the number of queries we save in the query logger
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Cache')
-rw-r--r--lib/private/Cache/CappedMemoryCache.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/Cache/CappedMemoryCache.php b/lib/private/Cache/CappedMemoryCache.php
index 29446c74bd9..c6b45c49c1c 100644
--- a/lib/private/Cache/CappedMemoryCache.php
+++ b/lib/private/Cache/CappedMemoryCache.php
@@ -77,6 +77,10 @@ class CappedMemoryCache implements ICache, \ArrayAccess {
$this->remove($offset);
}
+ public function getData() {
+ return $this->cache;
+ }
+
private function garbageCollect() {
while (count($this->cache) > $this->capacity) {