DCache
DCache copied to clipboard
A distributed in-memory NOSQL system based on TARS framework, support LRU algorithm and data persists on back-end database. Users can easily deploy, publish, and scale services on the web interface.
update CMakeLists.txt in test dir
数据过期时间
uint32_t _expiret; // 数据过期的绝对时间,由设置或更新数据时提供,0表示不关心此时间 绝对时间由调用者提供,如果调用者和DCache时间不一致,导致数据不在预期内过期,调用者无法掌控 是否可以让调用者只传递数据保持的秒数,DCache内部转换为时间戳
error msg: CMake Error at CMakeLists.txt:15 (include): include could not find requested file: /usr/local/tars/cpp/makefile/tars-tools.cmake CMake Error at src/ConfigServer/CMakeLists.txt:3 (gen_server): Unknown CMake command "gen_server".
CMake报错
cmake version 3.10.2 执行cmake时报错: -- The C compiler identification is GNU 7.5.0 -- The CXX compiler identification is unknown -- Check for working C compiler: /usr/bin/cc -- Check for working...

环境:Centos7 虚拟机, 虚拟内存2048M,单核处理器 [ 60%] Building CXX object src/OptServer/CMakeFiles/DCacheOptServer.dir/DCacheOptImp.cpp.o c++: internal compiler error: Killed (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See for instructions....
用容器创建的测试环境,刚刚创建的服务,过一会服务状态就会显示Off  删除SemKey.dat文件才可以启动。重启容器后又会出现同样的错误提示。 ``` [initialize server] .............................. [Done] -- | ==================================================================================================== | 2022-02-18 11:00:43\|140237359572864\|DEBUG\|CacheServer::addConfig pullConfig result = [succ] get remote config:CacheServer.conf | 2022-02-18 11:00:43\|140237359572864\|DEBUG\|RouterHandle::initialize Succ | 2022-02-18 11:00:43\|140237359572864\|DEBUG\|CacheServer::initialize groupName:TestKValueKVGroup1 |...
源码编译安装TarsFramework最新代码成功,TasrWeb可成功访问,TarsWeb上显示的版本如下: web:2.4.20 framework:3.0.2 下载DCache源码编译,make时出错,错误信息如下: ``` /usr/local/tars/cpp/include/tup/TarsJson.h:713:28: 附注: template argument deduction/substitution failed: /usr/local/tars/cpp/include/tup/TarsJson.h: In substitution of ‘template static tars::JsonValueObjPtr tars::JsonOutput::writeJson(const T&, typename std::enable_if::type) [with T = std::map]’: /dCacheSrc/DCache/src/PropertyServer/Property.h:1855:88: required from here...
 ConfigServer, OptServer和PropertyServer都报了这个错 但是后面上传ProxyServer等又能成功  打算手动部署opt等server,然而提示应用名非法  操作严格按照DCache和Tars的手动安装步骤来的,环境:wsl2下的ubuntu20.04