# go-cache **Repository Path**: omyscode/go-cache ## Basic Information - **Project Name**: go-cache - **Description**: GO_CACHE_HTTP 一个基于Go_HTTP实现的 KEY->VALUE 的缓存服务器 程序使用REST规范实现 增删改查 缓存基于内存 - **Primary Language**: Go - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2019-07-26 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: cache-modules **Tags**: None ## README # go-cache #### 介绍 {**GO_CACHE_HTTP** 一个基于Go_HTTP实现的 KEY->VALUE 的缓存服务器 程序使用REST规范实现 增删改查 缓存基于内存 } #### 增删改查 1. 增/改 入缓存 + HTTP Method : PUT + 请求地址:localhost:1235/cache/[key] + Key :[key] + Value :ResponseBody 2. 读取缓存 + HTTP Method : GET + 请求地址:localhost:1235/cache/[key] + Key :[key] 3. 删除缓存 + HTTP Method : DELETE + 请求地址:localhost:1235/cache/[key] + Key :Key => [key] #### 查询当前缓存数据大小 + 查询当前缓存数据大小 + HTTP Method : any + 请求地址:localhost:1235/status + 返回数据类型:json + 返回示例:{"Count":0,"KeySize":0,"ValueSize":0} + 字段说明 + Count : 缓存数据的总条数 + KeySize :缓存数据Key的总长度 + ValueSize :缓存数据Value的总长度