Dapper does not include built-in data caching features (although it uses extensive caching for the metaprogramming layer): it focuses entirely on ADO.NET stuff - however you can use almost any -shelf, including the HTTP runtime cache ( HttpContext.Current.Cache ) or newer versions of ObjectCache , etc. Since they just take objects, they should work fine.
If you use distributed cache (possibly through app-fabric, redis or memcached), you need data to serialize. In this case, I highly recommend using formal POCO types for binding, rather than the dynamic API. As an example, we use dapper to populate POCOs, which are annotated with protobuf-net markers for serialization, and stored through BookSleeve for redis. Which sounds more complicated than it really is.
source share