Working (though untested) use of Redis database for near duplicate detection