コード例 #1
0
static void
test_cache_cycle_memcached (void)
{
	// TODO those should probably be passed as args
	char *ip = "127.0.0.1";
	int port = 11211;

	struct oio_cache_s * c = oio_cache_make_memcached (ip, port);

	test_cache_cycle (c);
	oio_cache_destroy (c);
}
コード例 #2
0
ファイル: test_cache_redis.c プロジェクト: chrisz/oio-sds
static void
test_cache_cycle_redis (void)
{
	// TODO those should probably be passed as args
	char *ip = "127.0.0.1";
	int port = 6379;
	struct timeval timeout = {0,0};

	struct oio_cache_s * c = oio_cache_make_redis (ip, port, timeout);

	test_cache_cycle (c);
	oio_cache_destroy (c);
}