killme2008 / xmemcached

High performance, easy to use multithreaded memcached client in java.
http://fnil.net/xmemcached
Apache License 2.0
757 stars 281 forks source link

Cannot cache data larer than 1MB #127

Closed SieurMonkey closed 3 years ago

SieurMonkey commented 3 years ago

There is a fixed limit for the maximum data size in the CacheData.class from transcoders :

image

However, it's possible to increase the limit size authorized by memcache by passing a "-I" option or by overriding a property (max_item_size) since 1.4.2 version.

I found it possible to edit the max size when using the SerializingTrancoder by setting the transcoder this way :

image

However, I didn't find a way to do so with a StringTranscoder.

killme2008 commented 3 years ago

2.4.7 发布,增加了 xmemcached.cached.data.size.max 系统属性,可以通过 JVM 参数 -Dxmemcached.cached.data.size.max=xxx 设置默认最大值。

killme2008 commented 3 years ago

Released 2.4.7, and it added a system property xmemcached.cached.data.size.max to control the default max size value, you can configure it by adding jvm argument -Dxmemcached.cached.data.size.max=xxxx.