From ff1dba3d99610ed5daa300fc6d91cc803ff3c2b9 Mon Sep 17 00:00:00 2001 From: John Sully Date: Wed, 18 Dec 2019 13:38:59 -0500 Subject: [PATCH] add missing file Former-commit-id: 24e85bc84f58bbfbef973eab64017a08e3f34d7d --- src/keydbutils.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/keydbutils.cpp diff --git a/src/keydbutils.cpp b/src/keydbutils.cpp new file mode 100644 index 000000000..ebcbc7f06 --- /dev/null +++ b/src/keydbutils.cpp @@ -0,0 +1,10 @@ +#include "server.h" + +namespace keydbutils +{ + template<> + size_t hash(const sdsview& t) + { + return (size_t)dictGenHashFunction(static_cast(t), t.size()); + } +} \ No newline at end of file