Skip to content
The custom transcoders of VIEApps.Enyim.Caching
Branch: develop
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitattributes
.gitignore
Bson.cs
Enyim.Caching.Transcoders.csproj
LICENSE.md
MessagePack.Array.cs
MessagePack.Map.cs
ProtocolBuffers.cs
README.md
Transcoders.Helper.cs

README.md

VIEApps.Enyim.Caching.Transcoders

NuGet

NuGet

Configuration

The appsettings.json file

{
	"Memcached": {
		"Servers": [
			{
				"Address": "127.0.0.1",
				"Port": 11211
			}
		],
		"Transcoder": "Enyim.Caching.Memcached.BsonTranscoder, Enyim.Caching.Transcoders"
	}
}

The app.config/web.config file

<?xml version="1.0" encoding="utf-8"?>
<configuration>
	<configSections>
		<section name="memcached" type="Enyim.Caching.Configuration.MemcachedClientConfigurationSectionHandler, Enyim.Caching" />
	</configSections>
	<memcached>
		<servers>
			<add address="127.0.0.1" port="11211" />
		</servers>
		<socketPool minPoolSize="10" maxPoolSize="100" deadTimeout="00:01:00" connectionTimeout="00:00:05" receiveTimeout="00:00:01" />
		<transcoder type="Enyim.Caching.Memcached.BsonTranscoder, Enyim.Caching.Transcoders" />
	</memcached>
</configuration>

Available transcoders

  • Default (BinaryFormatter): Enyim.Caching.Memcached.DefaultTranscoder,Enyim.Caching
  • Protocol Buffers: Enyim.Caching.Memcached.ProtocolBuffersTranscoder,Enyim.Caching.Transcoders
  • Json.NET Bson: Enyim.Caching.Memcached.BsonTranscoder,Enyim.Caching.Transcoders
  • Message Pack Array mode: Enyim.Caching.Memcached.MessagePackArrayTranscoder,Enyim.Caching.Transcoders
  • Message Pack Map mode: Enyim.Caching.Memcached.MessagePackMapTranscoder,Enyim.Caching.Transcoders

Performance

See the results of neuecc at https://github.com/neuecc/MemcachedTranscoder/blob/master/ReadMe.md

You can’t perform that action at this time.