缓存服务参数详情

最近更新时间:2021-01-06 17:53:07

查看PDF

DescribeCacheParameters

查询可缓存服务参数详情。

请求方式

GET

请求参数

关于所有操作需要的通用参数,参照请见-公共请求头

英文名称 中文名称 类型 是否必填 备注
Action 接口名称 String 固定值:DescribeCacheParameters
Version 接口版本 String 固定值:2016-07-01
AvailableZone 可用区 String 默认:对应机房的a区
CacheId 缓存服务ID String 缓存服务ID

响应结果

英文名称 中文名称 类型 备注
RequestId 请求ID String 请求标识
Data 返回数据信息 Object 参照请见-响应示例,参考请见:参数组参数

错误信息

关于所有操作返回的错误信息,参照请见-通用异常信息

请求示例

https://kcs.api.ksyun.com/?Action=DescribeCacheParameters&Version=2016-07-01&CacheId=xxx

响应示例

{
    "RequestId":"cd261ef0-71f2-4d11-b74c-875b6455b",
    "Data":[
        {
            "name":"maxmemory-policy",
            "desc":"Redis淘汰策略",
            "defaultValue":"volatile-lru",
            "currentValue":"volatile-lru",
            "validity":{
                "type":"enum",
                "dataType":"string",
                "value":null,
                "values":[
                    "volatile-lru",
                    "allkeys-lru",
                    "volatile-random",
                    "allkeys-random",
                    "volatile-ttl",
                    "noeviction"
                ],
                "min":null,
                "max":null
            }
        },
        {
            "name":"list-max-ziplist-entries",
            "desc":"内部数据结构优化的阈值",
            "defaultValue":"512",
            "currentValue":"512",
            "validity":{
                "type":"range",
                "dataType":"integer",
                "value":null,
                "values":null,
                "min":"0",
                "max":"9007199254740990"
            }
        },
        {
            "name":"zset-max-ziplist-entries",
            "desc":"内部数据结构优化的阈值",
            "defaultValue":"128",
            "currentValue":"128",
            "validity":{
                "type":"range",
                "dataType":"integer",
                "value":null,
                "values":null,
                "min":"0",
                "max":"9007199254740990"
            }
        },
        {
            "name":"hash-max-ziplist-entries",
            "desc":"内部数据结构优化的阈值",
            "defaultValue":"512",
            "currentValue":"512",
            "validity":{
                "type":"range",
                "dataType":"integer",
                "value":null,
                "values":null,
                "min":"0",
                "max":"9007199254740990"
            }
        },
        {
            "name":"hash-max-ziplist-value",
            "desc":"内部数据结构优化的阈值",
            "defaultValue":"64",
            "currentValue":"64",
            "validity":{
                "type":"range",
                "dataType":"integer",
                "value":null,
                "values":null,
                "min":"0",
                "max":"9007199254740990"
            }
        },
        {
            "name":"list-max-ziplist-value",
            "desc":"内部数据结构优化的阈值",
            "defaultValue":"64",
            "currentValue":"64",
            "validity":{
                "type":"range",
                "dataType":"integer",
                "value":null,
                "values":null,
                "min":"0",
                "max":"9007199254740990"
            }
        },
        {
            "name":"appendonly",
            "desc":"是否开启AOF持久化功能",
            "defaultValue":"no",
            "currentValue":"no",
            "validity":{
                "type":"enum",
                "dataType":"string",
                "value":null,
                "values":[
                    "yes",
                    "no"
                ],
                "min":null,
                "max":null
            }
        },
        {
            "name":"notify-keyspace-events",
            "desc":"键空间通知配置",
            "defaultValue":"",
            "currentValue":"",
            "validity":{
                "type":"regexp",
                "dataType":"string",
                "value":"[KEg$lshzxeA]*",
                "values":null,
                "min":null,
                "max":null
            }
        },
        {
            "name":"zset-max-ziplist-value",
            "desc":"内部数据结构优化的阈值",
            "defaultValue":"64",
            "currentValue":"64",
            "validity":{
                "type":"range",
                "dataType":"integer",
                "value":null,
                "values":null,
                "min":"0",
                "max":"9007199254740990"
            }
        },
        {
            "name":"set-max-intset-entries",
            "desc":"内部数据结构优化的阈值",
            "defaultValue":"512",
            "currentValue":"512",
            "validity":{
                "type":"range",
                "dataType":"integer",
                "value":null,
                "values":null,
                "min":"0",
                "max":"9007199254740990"
            }
        },
        {
            "name":"timeout",
            "desc":"连接空闲超时时间",
            "defaultValue":"600",
            "currentValue":"600",
            "validity":{
                "type":"range",
                "dataType":"integer",
                "value":null,
                "values":null,
                "min":"0",
                "max":"86400"
            }
        },
        {
            "name":"maxmemory-samples",
            "desc":"淘汰算法运行时的采样数",
            "defaultValue":"3",
            "currentValue":"3",
            "validity":{
                "type":"range",
                "dataType":"integer",
                "value":null,
                "values":null,
                "min":"1",
                "max":"10"
            }
        },
        {
            "name":"appendfsync",
            "desc":"AOF文件同步方式",
            "defaultValue":"everysec",
            "currentValue":"everysec",
            "validity":{
                "type":"enum",
                "dataType":"string",
                "value":null,
                "values":[
                    "everysec",
                    "always",
                    "no"
                ],
                "min":null,
                "max":null
            }
        }
    ]
}

文档内容是否对您有帮助?

根本没帮助
文档较差
文档一般
文档不错
文档很好

在文档使用中是否遇到以下问题

内容不全,不深入
内容更新不及时
描述不清晰,比较混乱
系统或功能太复杂,缺乏足够的引导
内容冗长

更多建议

0/200

评价建议不能为空

提交成功!

非常感谢您的反馈,我们会继续努力做到更好!

问题反馈