<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>akishin999</author_name>
  <author_url>https://blog.hatena.ne.jp/akishin999/</author_url>
  <blog_title>akishin999の日記</blog_title>
  <blog_url>https://akishin.hatenablog.jp/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>Redis</anon>
  </categories>
  <description>redis-rb を使って Redis に値を保存する際に自動的に圧縮して、取り出す時には自動的に展開してくれたら便利だな、と思って試しに作ってみました。Redis::Client へのモンキーパッチで、コマンド判別して Zlib::Deflate と Zlib::Inflate 使って圧縮・展開するようにしています。 とりあえず対応している Redis のコマンドは書込みは set, setex, setnx, psetex、読み込みは get だけです。使い方は以下のような感じ。 # -*- coding: utf-8 -*- require 'redis' require 'redis/…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fakishin.hatenablog.jp%2Fentry%2F20130626%2F1372201283&quot; title=&quot; redis-rb で自動的に圧縮して保存する - akishin999の日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>http://ecx.images-amazon.com/images/I/51q+88SW9rL.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-06-26 08:01:23</published>
  <title> redis-rb で自動的に圧縮して保存する</title>
  <type>rich</type>
  <url>https://akishin.hatenablog.jp/entry/20130626/1372201283</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
