# tcache **Repository Path**: tanoo/tcache ## Basic Information - **Project Name**: tcache - **Description**: 手写缓存 - 模拟redis - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-06-12 - **Last Updated**: 2024-06-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 使用方式 1. 启动项目 2. 利用redis-cli 连接 `redis-cli -h 127.0.0.1 -p 6369` `.\redis-cli.exe -h 127.0.0.1 -p 6369` 3. 在 cli 里进行命令书写 # 命令 ## 当前支持的命令 连接之后使用`COMMAND` 查看 ## 菜鸟参考 https://www.runoob.com/redis/redis-tutorial.html ## 官方参考 https://redis.io/docs/latest/commands/ # redis协议参考 https://www.cnblogs.com/throwable/p/11644790.html # 最终版redis参考 https://gitee.com/kimmking/research/tree/master/qedis # arg 取值格式 - a[0] 协议类型+组成字符串的字节数长度 - a[1] 协议类型+组成字符串的字节数长度 - a[2] 数据类容 - ... 以此类推 ```text *3 $3 set $3 tan $3 宁 ```