{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fy0m0r.hateblo.jp%2Fentry%2F20130319%2F1363704957\" title=\"python\u3067redis\u3092\u3055\u308f\u308b\u7df4\u7fd2 - \u30e1\u30e2\u7f6e\u304d\u5834\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://y0m0r.hateblo.jp/","published":"2013-03-19 23:55:57","url":"https://y0m0r.hateblo.jp/entry/20130319/1363704957","blog_title":"\u30e1\u30e2\u7f6e\u304d\u5834","image_url":null,"title":"python\u3067redis\u3092\u3055\u308f\u308b\u7df4\u7fd2","author_name":"yuheiomori0718","width":"100%","categories":["python","redis"],"author_url":"https://blog.hatena.ne.jp/yuheiomori0718/","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","description":"\u6587\u5b57\u5217\u306e\u6271\u3044\u3068\u6570\u5024\u306e\u6271\u3044\u3092\u9069\u5f53\u306b\u3055\u308f\u3063\u3066\u307f\u3066\u305f\u306e\u3067\u30e1\u30e2\u3092\u6b8b\u3057\u3068\u304f # coding=utf-8 import redis import time r = redis.StrictRedis(host='localhost', port=6379, db=0) # \u6587\u5b57\u5217\u3092\u30bb\u30c3\u30c8 r.set('name_1', 'brainstorm') # \u6570\u5024\u3092\u30bb\u30c3\u30c8 r.set('rank_1', 100) # \u5b58\u5728\u3092\u78ba\u8a8d assert(r.exists('name_1')) assert(r.exists('rank_1')) # \u53d6\u5f97 assert(r.get('name_1') == 'brains\u2026","height":"190","version":"1.0","type":"rich"}