O'Reilly logo

Mastering ServiceStack by Andreas Niedermair

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Cache

Additional to the session data, any serializable object can be saved in a cache, which is a common technique to speed up applications. Therefore, ServiceStack offers the following cache clients:

  • ServiceStack.Redis.RedisCientManagerCacheClient:
    container.Register<IRedisClientManager>(arg => newPooledRedisClientManager());
    container.Register(arg => arg.Resolve<IRedisClientManager>().GetCacheClient());
  • ServiceStack.Caching.Memcached.MemcachedClientCache:
    container.Register<ICacheClient>(arg => new MemcachedClientCache());
  • ServiceStack.Caching.Azure.AzureCacheClient:
    container.Register<ICacheClient>(arg => new AzureCacheClient());
  • ServiceStack.Caching.AwsDynamoDb.DynamoDbCacheClient:
    container.Register<ICacheClient>(arg => new DynamoDbCacheClient(...)); ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required