Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><a href="http://www.servicestack.net" rel="noreferrer">ServiceStack's</a> caching isn't coupled, the <code>ToOptimizedResultUsingCache()</code> method is just a <a href="https://github.com/ServiceStack/ServiceStack/blob/master/src/ServiceStack/ServiceHost/RequestContextExtensions.cs" rel="noreferrer">convenience Extension method</a> allowing you implement a common caching pattern in the minimal boilerplate necessary. The <code>ToOptimizedResult</code> method returns the most optimized result based on the MimeType and CompressionType from the IRequestContext. e.g. in a JSON service it would normally be the deflate'd output of the JSON Response DTO.</p> <p>You don't have to use the extension method and can access the <a href="https://github.com/ServiceStack/ServiceStack/blob/master/src/ServiceStack.Interfaces/CacheAccess/ICacheClient.cs" rel="noreferrer">ICacheClient API</a> directly as it's an auto-wired property in the <code>ServiceBase</code> class. If you require more functionality than the ICacheClient API can provide, I recommend using <a href="http://redis.io/" rel="noreferrer">Redis</a> and <a href="https://github.com/ServiceStack/ServiceStack.Redis" rel="noreferrer">ServiceStack's C# RedisClient</a> which gives you fast, atomic access to distributed comp-sci collections.</p> <p>The benefit of using an <code>ICacheClient</code> API is that it's a testable implementation agnostic caching interface that currently has <a href="https://github.com/ServiceStack/ServiceStack/wiki/Caching" rel="noreferrer">InMemory, Redis and Memcached providers</a>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload