Esempio n. 1
0
        static PubSubCacheController()
        {
            var connection = ConnectionMultiplexer.Connect("localhost");
            var serializer = new MsgPackItemSerializer();

            _pubSubCache = CacheFactory.CreatePubSubDoubleCache(connection, serializer);
        }
Esempio n. 2
0
        public void CreatePubSubDoubleCache_ReturnsCacheObject()
        {
            var connection = A.Fake <IConnectionMultiplexer>();
            var serializer = A.Fake <IItemSerializer>();

            var cache = CacheFactory.CreatePubSubDoubleCache(connection, serializer);

            cache.ShouldBeOfType <DoubleCache.DoubleCache>();
        }