Skip to content

vieapps/Enyim.Caching.Transcoders

Repository files navigation

VIEApps.Enyim.Caching.Transcoders

NuGet

NuGet

Configuration

The appsettings.json file

{
	"Memcached": {
		"Servers": [
			{
				"Address": "127.0.0.1",
				"Port": 11211
			}
		],
		"Transcoder": "Enyim.Caching.Memcached.ProtocolBuffersTranscoder, 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.ProtocolBuffersTranscoder, Enyim.Caching.Transcoders" />
	</memcached>
</configuration>

Available transcoders

  • Default (MsgPack.CLI): Enyim.Caching.Memcached.DefaultTranscoder,Enyim.Caching
  • BSON: Enyim.Caching.Memcached.BsonTranscoder,Enyim.Caching.Transcoders
  • Protocol Buffers: Enyim.Caching.Memcached.ProtocolBuffersTranscoder,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

About

The custom transcoders of VIEApps.Enyim.Caching on .NET

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages