POST Api/Service/AddString

向数据库添加字符型数据

Request Information

URI Parameters

None.

Body Parameters

请求对象

SpeedPower.Service.MIRedis.Models.Service.AddString
NameDescriptionTypeAdditional information
Value

内容

string

Required

WhenType

写入方式

SpeedPower.Service.MIRedis.Models.Service.WhenType

None.

Timeout

过期时间

time interval

None.

Key

Key值

string

Required

Request Formats

application/json, text/json

Sample:
{
  "Value": "sample string 1",
  "WhenType": 0,
  "Timeout": "00:00:00.1234567",
  "Key": "sample string 2"
}

Response Information

Resource Description

向数据库添加字符型数据

SpeedPower.Service.MIRedis.Models.Helper.ResultMessage
NameDescriptionTypeAdditional information
Succeed

操作是否成功

boolean

None.

Message

操作消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Succeed": true,
  "Message": "sample string 2"
}