接口路径(新):http://api.okayapi.com/api/App/Redis/Get
接口路径(旧):http://api.okayapi.com/?s=App.Redis.Get
接口描述: 根据key获取缓存
Parameter | Type | Required | Default | Note | Description |
---|---|---|---|---|---|
HTTP_APPKEY | String | Required | MIN: 32 | Common Put Your APPKEY | |
key | String | Required | Redis缓存的key |
KEY | Type | Description |
---|---|---|
err_code | Int | 0为成功,其他为失败 |
err_msg | String | 错误文案 |
data | String | 缓存内容 |
接口路径(新):http://api.okayapi.com/api/App/Redis/Set
接口路径(旧):http://api.okayapi.com/?s=App.Redis.Set
接口描述: 缓存数据
Parameter | Type | Required | Default | Note | Description |
---|---|---|---|---|---|
HTTP_APPKEY | String | Required | MIN: 32 | Common Put Your APPKEY | |
key | String | Required | Redis缓存的key | ||
value | String | Required | Redis缓存的值 | ||
expire | Int | Required | Redis过期时间,精确到秒 |
KEY | Type | Description |
---|---|---|
err_code | Int | 0为成功,其他为失败 |
err_msg | String | 错误文案 |
接口路径(新):http://api.okayapi.com/api/App/Redis/Incr
接口路径(旧):http://api.okayapi.com/?s=App.Redis.Incr
接口描述: 根据key自增1
Parameter | Type | Required | Default | Note | Description |
---|---|---|---|---|---|
HTTP_APPKEY | String | Required | MIN: 32 | Common Put Your APPKEY | |
key | String | Required | Redis缓存的key |
KEY | Type | Description |
---|---|---|
err_code | Int | 0为成功,其他为失败 |
err_msg | String | 错误文案 |
data | Int | 自增后的值 |
接口路径(新):http://api.okayapi.com/api/App/Redis/IncrBy
接口路径(旧):http://api.okayapi.com/?s=App.Redis.IncrBy
接口描述: 根据key自增num
Parameter | Type | Required | Default | Note | Description |
---|---|---|---|---|---|
HTTP_APPKEY | String | Required | MIN: 32 | Common Put Your APPKEY | |
key | String | Required | Redis缓存的key | ||
num | Int | Required | 一次自增添加的值 |
KEY | Type | Description |
---|---|---|
err_code | Int | 0为成功,其他为失败 |
err_msg | String | 错误文案 |
data | Int | 自增后的值 |
接口路径(新):http://api.okayapi.com/api/App/Redis/Decr
接口路径(旧):http://api.okayapi.com/?s=App.Redis.Decr
接口描述: 根据key自减1
Parameter | Type | Required | Default | Note | Description |
---|---|---|---|---|---|
HTTP_APPKEY | String | Required | MIN: 32 | Common Put Your APPKEY | |
key | String | Required | Redis缓存的key |
KEY | Type | Description |
---|---|---|
err_code | Int | 0为成功,其他为失败 |
err_msg | String | 错误文案 |
data | Int | 自减后的值 |
接口路径(新):http://api.okayapi.com/api/App/Redis/DecrBy
接口路径(旧):http://api.okayapi.com/?s=App.Redis.DecrBy
接口描述: 根据key自减num
Parameter | Type | Required | Default | Note | Description |
---|---|---|---|---|---|
HTTP_APPKEY | String | Required | MIN: 32 | Common Put Your APPKEY | |
key | String | Required | Redis缓存的key | ||
num | Int | Required | 一次自减减少的值 |
KEY | Type | Description |
---|---|---|
err_code | Int | 0为成功,其他为失败 |
err_msg | String | 错误文案 |
data | Int | 自减后的值 |
Power by OkayAPI.com Contact us (WA: okayapi OR Email: chanzonghuang@gmail.com).
Timezone: America/New_York Apr/24/2024 10:52:32