aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Memcache
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-05-05 14:12:44 +0200
committerCarl Schwan <carl@carlschwan.eu>2022-05-05 14:12:44 +0200
commitba88187649a80e0f5370ca4b5755b1faf9fe0a7c (patch)
tree4cb8305ef053a35471f213b2f950bd86c6825c36 /lib/private/Memcache
parent8fecf3467f778ff9e7a6ad6ab591a32e005c9546 (diff)
downloadnextcloud-server-ba88187649a80e0f5370ca4b5755b1faf9fe0a7c.tar.gz
nextcloud-server-ba88187649a80e0f5370ca4b5755b1faf9fe0a7c.zip
Add hit information to profiler
This might be helpful later on for the cache ui that is worked on in https://github.com/nextcloud/profiler/pull/21 Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'lib/private/Memcache')
-rw-r--r--lib/private/Memcache/ProfilerWrapperCache.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/Memcache/ProfilerWrapperCache.php b/lib/private/Memcache/ProfilerWrapperCache.php
index 8e9b160ba0e..6e76989dddd 100644
--- a/lib/private/Memcache/ProfilerWrapperCache.php
+++ b/lib/private/Memcache/ProfilerWrapperCache.php
@@ -69,6 +69,7 @@ class ProfilerWrapperCache extends AbstractDataCollector implements IMemcacheTTL
'start' => $start,
'end' => microtime(true),
'op' => $this->getPrefix() . '::get::' . $key,
+ 'hit' => $ret !== null,
];
return $ret;
}