{"type":"rich","blog_url":"https://y0m0r.hateblo.jp/","author_name":"yuheiomori0718","author_url":"https://blog.hatena.ne.jp/yuheiomori0718/","provider_name":"Hatena Blog","title":"python\u3067redis\u3092\u3055\u308f\u308b\u7df4\u7fd2 3","image_url":null,"categories":["python","redis"],"blog_title":"\u30e1\u30e2\u7f6e\u304d\u5834","height":"190","provider_url":"https://hatena.blog","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fy0m0r.hateblo.jp%2Fentry%2F20130321%2F1363878852\" title=\"python\u3067redis\u3092\u3055\u308f\u308b\u7df4\u7fd2 3 - \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>","description":"\u6628\u65e5\u306b\u7d9a\u3044\u3066\u3001python\u3067redis\u306e\u30bb\u30c3\u30c8\u3092\u64cd\u4f5c\u3057\u3066\u307f\u305f\u3002 \u30ea\u30b9\u30c8\u3088\u308a\u308f\u304b\u308a\u3084\u3059\u3044\u3002 # coding=utf-8 import redis r = redis.StrictRedis(host='localhost', port=6379, db=0) r.delete('alphabet') r.delete('digit') r.delete('character') # sadd: \u30ad\u30fc\u306b\u5bfe\u5fdc\u3059\u308b\u30bb\u30c3\u30c8\u306b\u5024\u3092\u8ffd\u52a0\u3059\u308b r.sadd('alphabet', 'A', 'B', 'C', 'D') r.sadd('digit', 1, 2, 3, 4, 'Z') # smembers:\u2026","url":"https://y0m0r.hateblo.jp/entry/20130321/1363878852","published":"2013-03-21 00:14:12","width":"100%"}