This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
tango-tfe/cache/test
zhangchengwei 0e6b5dd610 [1]统一GET/PUT结束后结果通知机制,API直接调用失败时不回调,其他情况回调(promise);
[2]hiredis版本确定为0.14.0版;
[3]修复tango_cache_ctx_destroy中TAILQ内存释放的BUG;
2018-10-27 11:03:58 +08:00
..

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

1、tango_cache_test.c是天狗使用的demo需要外部创建并监听event_base执行方法如下
	打开一个终端,执行./tango_cache_test
	打开另一个终端,执行:
	获取echo GET:tcpdump_all_1.pcap > cache.fifo
	流式上传:
echo PUT:tcpdump_all_1.pcap > cache.fifo
	完整上传:
echo PUTONCE:tcpdump_all_1.pcap > cache.fifo


2、cache_evbase_test.c是对天狗cache的封装用户不必自己创建event_base程序内部创建执行方法如下
	获取:./cache_evbase_test GET:tcpdump_all_1.pcap
	流式上传:./cache_evbase_test PUT:tcpdump_all_1.pcap
	完整上传:./cache_evbase_test PUTONCE:tcpdump_all_1.pcap

以上所有都是针对文件对象tcpdump_all_1.pcap而言的实际应用时替换成具体的文件名。