Exemplo n.º 1
0
    def test_should_return_cache_by_path(self):
        from redisdb.compat import get_cache

        client = get_cache('redisdb.backends.RedisRing', DB=0)

        self.assertIsInstance(client, RedisRing)
Exemplo n.º 2
0
    def test_should_return_cache_by_alias(self):
        from redisdb.compat import get_cache

        client = get_cache('redis_ring')

        self.assertIsInstance(client, RedisRing)