1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

memcachedのvalueのデフォルトサイズは1M

Posted at

表題の通りです。

webappでsession内に画像データを保存するとかよくあることかと思いますが、何故か保存先をmemcachedにした時に、storeされた画像データがfetchできないことがあったのでなんでかなとしばらく悩んでいたのですが理由はシンプルだった。

起動時の引数に -I サイズ を加えて最大サイズを大きくしましょう。

/usr/bin/memcached -I 10M

つか memcached -h にちゃんと書いてあった。versionは 1.4.34

-I            Override the size of each slab page. Adjusts max item size
              (default: 1mb, min: 1k, max: 128m)
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?