【发布时间】:2017-08-14 18:00:02
【问题描述】:
如何在 Aerospike DB 中为默认的 PHP 客户端声明一个命名空间? 我浏览了http://www.aerospike.com/docs/client/php 的文档,但找不到任何有用的东西。
虽然你可以在http://www.aerospike.com/docs/operations/configure/namespace找到以下代码
namespace <namespace-name> {
# memory-size 4G # 4GB of memory to be used for index and data
# replication-factor 2 # For multiple nodes, keep 2 copies of the data
# high-water-memory-pct 60 # Evict non-zero TTL data if capacity exceeds
# 60% of 4GB
# stop-writes-pct 90 # Stop writes if capacity exceeds 90% of 4GB
# default-ttl 0 # Writes from client that do not provide a TTL
# will default to 0 or never expire
# storage-engine memory # Store data in memory only
}
但是我该如何使用 PHP 呢?
【问题讨论】:
标签: php namespaces aerospike