<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kumagi</author_name>
  <author_url>https://blog.hatena.ne.jp/kumagi/</author_url>
  <blog_title>くまメモ</blog_title>
  <blog_url>https://kumagi.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>キーバリューストアはフラットな名前空間でキーとバリューの1:1ペアを保持するだけの簡単なデータ構造しか提供しませんが使う側の工夫で好きな構造を作って有効利用できるはずです。そこで擬似コードを書いてみました。memcachedプロトコルの上でFIFOを実現します。 keyに「データ+ユニークな乱数」valueに「次の要素へのポインタ」を保持させる事により、memcachedプロトコル上のgets,cas,addなどの基本的な操作でキーバリューストアを構築できます。ユニークな乱数を使うのは、全く同一の内容でもキーバリューストアに別のキーとして保存させるためです。 // queue class qu…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkumagi.hatenadiary.org%2Fentry%2F20100521&quot; title=&quot;キーバリューストア上に構築するFIFO - くまメモ&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-05-21 00:00:00</published>
  <title>キーバリューストア上に構築するFIFO</title>
  <type>rich</type>
  <url>https://kumagi.hatenadiary.org/entry/20100521</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
