Skip to content

Commit

Permalink
add unit test to aof and fix tiny bugs of aof
Browse files Browse the repository at this point in the history
  • Loading branch information
HDT3213 committed Apr 11, 2021
1 parent 23b6dd5 commit 93f8bc3
Show file tree
Hide file tree
Showing 7 changed files with 409 additions and 204 deletions.
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ middleware using golang.

Please be advised, NEVER think about using this in production environment.

This repository implemented most features of redis, including 5 data structures, ttl, publish/subscribe, AOF persistence
and server side cluster mode.
Gods implemented most features of redis, including 5 data structures, ttl, publish/subscribe, geo and AOF persistence.

Godis can run as a server side cluster which is transparent to client. You can connect to any node in the cluster to access all data in the cluster:

If you could read Chinese, you can find more details in [My Blog](https://www.cnblogs.com/Finley/category/1598973.html).

## Running
## Get Started

You can get runnable program in the releases of this repository, which supports Linux and Darwin system.

Expand Down Expand Up @@ -44,7 +45,7 @@ CONFIG=node1.conf ./godis-darwin &
CONFIG=node2.conf ./godis-darwin &
```

The cluster is transparent to client. You can connect to any node in the cluster to access all data in the cluster:
Connect to a node in the cluster to access all data in the cluster:

```cmd
redis-cli -p 6399
Expand Down Expand Up @@ -146,6 +147,13 @@ Supported Commands:
- publish
- subscribe
- unsubscribe
- Geo
- GeoAdd
- GeoPos
- GeoDist
- GeoHash
- GeoRadius
- GeoRadiusByMember

# Read My Code

Expand Down
13 changes: 12 additions & 1 deletion README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ Godis 是一个用 Go 语言实现的 Redis 服务器。本项目旨在为尝试

**请注意:不要在生产环境使用使用此项目**

Godis 实现了 Redis 的大多数功能,包括5种数据结构、TTL、发布订阅以及 AOF 持久化。可以在[我的博客](https://www.cnblogs.com/Finley/category/1598973.html)了解更多关于
Godis 实现了 Redis 的大多数功能,包括5种数据结构、TTL、发布订阅、地理位置以及 AOF 持久化。

Godis 支持集群模式,集群对客户端是透明的只要连接上集群中任意一个节点就可以访问集群中所有数据

可以在[我的博客](https://www.cnblogs.com/Finley/category/1598973.html)了解更多关于
Godis 的信息。

# 运行 Godis
Expand Down Expand Up @@ -134,6 +138,13 @@ redis-cli -p 6399
- publish
- subscribe
- unsubscribe
- Geo
- GeoAdd
- GeoPos
- GeoDist
- GeoHash
- GeoRadius
- GeoRadiusByMember

## 如何阅读源码

Expand Down
Loading

0 comments on commit 93f8bc3

Please sign in to comment.