Add router cache back for performance comparision (#2036)

Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>

Co-authored-by: Vishal <vishal-biyani@users.noreply.github.com>
This commit is contained in:
Sanket Sudake
2021-06-14 18:30:23 +05:30
committed by GitHub
co-authored by Vishal
parent b6cf078395
commit 377600d0a3
2 changed files with 101 additions and 9 deletions
+5
View File
@@ -77,3 +77,8 @@ func (fmap *functionServiceMap) assign(f *metav1.ObjectMeta, serviceURL *url.URL
// ignore error
}
}
func (fmap *functionServiceMap) remove(f *metav1.ObjectMeta) error {
mk := keyFromMetadata(f)
return fmap.cache.Delete(*mk)
}