Compare commits

...

1 Commits

Author SHA1 Message Date
af79e74b95 fixed max message size for memcache backend 2025-02-06 23:09:22 +08:00

View File

@@ -76,7 +76,7 @@ class MemcacheClient(private val cfg: MemcacheCacheConfiguration) : AutoCloseabl
override fun channelCreated(ch: Channel) { override fun channelCreated(ch: Channel) {
val pipeline: ChannelPipeline = ch.pipeline() val pipeline: ChannelPipeline = ch.pipeline()
pipeline.addLast(BinaryMemcacheClientCodec()) pipeline.addLast(BinaryMemcacheClientCodec())
pipeline.addLast(BinaryMemcacheObjectAggregator(Integer.MAX_VALUE)) pipeline.addLast(BinaryMemcacheObjectAggregator(cfg.maxSize))
} }
} }
return FixedChannelPool(bootstrap, channelPoolHandler, server.maxConnections) return FixedChannelPool(bootstrap, channelPoolHandler, server.maxConnections)