Hi I’m trying to use the Memcached system as explained in the documentation:
container.Register<IDbConnectionFactory>(new OrmLiteConnectionFactory(connectionString, SqlServerDialect.Provider));
var db = container.Resolve<IDbConnectionFactory>().Open();
I’ve got two errors:
Error 2 Argument 1: cannot convert from 'string' to 'Enyim.Caching.Configuration.IMemcachedClientConfiguration'
Error 1 The best overloaded method match for 'ServiceStack.Caching.Memcached.MemcachedClientCache.MemcachedClientCache(Enyim.Caching.Configuration.IMemcachedClientConfiguration)' has some invalid arguments
If I pass no parameters to MemcachedClientCache I’ve got an exception error on application startup… “the value can’t be null” :-/
Anyone know what’s happening?
Thank you very much mythz I’ve tried the other cache solutions (except Redis that I will test soon) but the only one that seems to work is the In-Memory cache… the OrmLite cache seems to have a limit that does return only small amount of data (I’ve tried with a 10mb table and it doesn’t return nothing, it seems stuck).
Anyway… do you think Redis performances are better than In-Memory cache?
I’d just need a cache system to speed up my rest service based on MS SQL db… Have you a tutorial about it?