enyim / memcached-providers Goto Github PK
View Code? Open in Web Editor NEWASP.NET Providers
License: Apache License 2.0
ASP.NET Providers
License: Apache License 2.0
I set up a local memcached server on a Windows 7 Pro development machine. I haven't been able to get the session state working at all. I have a sample project with just a default.aspx page that increments an int value every time it loads. It always comes up zero. I can't attach it here, but I can email it somewhere if it would help.
I'm sure I'm just missing something in the config - Note, I'm using the DefaultClientFactory because I'm using enyim memcached, not membase (maybe that's the problem?)
Is it necessary to use CAS for the SessionProvider as it seems to increase CPU load on the Couchbase cluster?
I'm using Enyim MemcachedProviders and register the following config in my web.config file:
<sessionState customProvider="Memcached" mode="Custom">
<providers>
<add name="Memcached"
type="Enyim.Caching.Web.MembaseSessionStateProvider, Enyim.Caching.Web" />
</providers>
</sessionState>
Is it possible to choose different membase section in the session-state provider? I would like to choose different vBucket as my session store.
Hi,
Would you consider change default client factory from DefaultClientFactory to MembaseClientFactory?
BR,
Will
When using the Memcached output provider, and enabling static file output caching in IIS, I wind up getting a lot of exceptions like this, for simple files that should 404. Ex. bots will request content with bad characters in it, and instead of returning a 404, the server winds up returning a 500.
Any ideas for a good workaround for this? I understand if memcached is limited in the characters it might accept for keys, but it seems to me like perhaps the outputcache provider's "Get" implementation might be better served to return the fact that it doesn't have content for that key, rather than throwing an exception. But, perhaps there are ramifications I'm not considering.
Thanks,
Tom
System.ArgumentException: Keys cannot contain the chars 0x00-0x20 and space.
at Enyim.Caching.Memcached.DefaultKeyTransformer.Transform(String key) in d:\Dropbox\repo\EnyimMemcached\Enyim.Caching\Memcached\KeyTransformers\DefaultKeyTransformer.cs:line 22
at Membase.MembaseClient.PerformTryGet(String key, UInt64& cas, Object& value) in d:\Dropbox\repo\EnyimMemcached\Membase\MembaseClient.cs:line 85
at Enyim.Caching.MemcachedClient.TryGet(String key, Object& value) in d:\Dropbox\repo\EnyimMemcached\Enyim.Caching\MemcachedClient.cs:line 132
at Enyim.Caching.MemcachedClient.Get(String key) in d:\Dropbox\repo\EnyimMemcached\Enyim.Caching\MemcachedClient.cs:line 107
at System.Web.Caching.OutputCache.Get(String key)
at System.Web.Caching.OutputCacheModule.OnEnter(Object source, EventArgs eventArgs)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
I see MemcachedOutputCacheProvider, but how would we accomplish the same with membase? Is that supported?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.