Memcache Properties |
The Memcache type exposes the following members.
Name | Description | |
---|---|---|
BinarySerializable |
获取或设置二进制序列化器,默认 JsonBinarySerializable, 可通过在appsetting中配置 MemcacheBinarySerializable 来指定其它实例
| |
CompressionThreshold |
Sets the required length for data to be considered for compression.
If the length of the data to be stored is not equal or larger than this value, it will
not be compressed.
This defaults to 15 KB.
| |
EnableCompression |
Enable storing compressed data, provided it meets the threshold requirements.
If enabled, data will be stored in compressed form if it is
longer than the threshold length set with setCompressThreshold(int)
The default is that compression is enabled.
Even if compression is disabled, compressed data will be automatically
decompressed.
| |
Encoding |
Sets default string encoding when storing primitives as strings.
Default is UTF-8.
| |
Host |
主机
| |
IsConnected |
Gets whether or not the socket is connected. Returns true if it is.
| |
PoolAbandon |
获取或设置是否放弃此实例
| |
Port |
端口
| |
SendTimeout |
发送超时
|