{"action":"opened","issue":{"url":"https://api.github.com/repos/antirez/redis/issues/3038","labels_url":"https://api.github.com/repos/antirez/redis/issues/3038/labels{/name}","comments_url":"https://api.github.com/repos/antirez/redis/issues/3038/comments","events_url":"https://api.github.com/repos/antirez/redis/issues/3038/events","html_url":"https://github.com/antirez/redis/issues/3038","id":129175753,"number":3038,"title":"Search by value, not by Key","user":{"login":"anguoyang","id":7838082,"avatar_url":"https://avatars.githubusercontent.com/u/7838082?v=3","gravatar_id":"","url":"https://api.github.com/users/anguoyang","html_url":"https://github.com/anguoyang","followers_url":"https://api.github.com/users/anguoyang/followers","following_url":"https://api.github.com/users/anguoyang/following{/other_user}","gists_url":"https://api.github.com/users/anguoyang/gists{/gist_id}","starred_url":"https://api.github.com/users/anguoyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anguoyang/subscriptions","organizations_url":"https://api.github.com/users/anguoyang/orgs","repos_url":"https://api.github.com/users/anguoyang/repos","events_url":"https://api.github.com/users/anguoyang/events{/privacy}","received_events_url":"https://api.github.com/users/anguoyang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-27T15:23:27Z","updated_at":"2016-01-27T15:23:27Z","closed_at":null,"body":"Hi,\r\nI am a beginner on Redis.\r\nRedis is famous for its key-value storage, there are some description on its official website :\"data can later be retrieved only if we know the exact key used to store it\"\r\nWhat I want to ask: is it possible to retrieve the Key by compare all values?\r\nIn my application, I need to store many key-value pairs, when I want to search the DB, I have only the value, and want to compare with all values in the DB, and return the top-10 keys which value is more similar with the value I sent to the DB(valueforsearch), the comparing method is very simple, just abs(valueforsearch - valuesinDB), we need to select the keys for most small abs values compared with valueforsearch.\r\n"}}