3
我正在使用针对Aerospike的永久存储器。下面是相同的配置。我使用python客户端时,我删除使用的密钥:删除记录不适用于Aerospike永久存储器
client.remove(key)
数据被删除。现在,当我重新启动服务器时,数据又回来了。这是它应该如何工作,或者我做错了什么?
配置文件:
namespace xxx {
replication-factor 2
memory-size 2G
default-ttl 60d # 5 days, use 0 to never expire/evict.
# To use file storage backing, comment out the line above and use the
# following lines instead.
storage-engine device {
file /opt/aerospike/data/xxx.dat
filesize 4G
data-in-memory true # Store data in memory in addition to file.
write-block-size 128K
}
}
有一个变通的一样吗?