diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-05-05 14:12:44 +0200 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2022-05-05 14:12:44 +0200 |
commit | ba88187649a80e0f5370ca4b5755b1faf9fe0a7c (patch) | |
tree | 4cb8305ef053a35471f213b2f950bd86c6825c36 /lib/private/Memcache | |
parent | 8fecf3467f778ff9e7a6ad6ab591a32e005c9546 (diff) | |
download | nextcloud-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.php | 1 |
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; } |