Skip to content

Commit

Permalink
feat: support maxmemory-clients
Browse files Browse the repository at this point in the history
  • Loading branch information
AntiTopQuark committed Sep 2, 2024
1 parent 75f6177 commit a3bf6eb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/server/redis_connection.h
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,10 @@ class Connection : public EvbufCallbackBase<Connection> {
bool importing_ = false;
RESP protocol_version_ = RESP::v2;
std::string output_buffer_;
<<<<<<< HEAD
=======

>>>>>>> 3ce53f66 (feat: support maxmemory-clients)
};

} // namespace redis
3 changes: 3 additions & 0 deletions tests/gocase/unit/limits/limits_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ func TestNetworkLimits(t *testing.T) {
})
}

<<<<<<< HEAD
func getEvictedClients(rdb *redis.Client, ctx context.Context) (int, error) {
info, err := rdb.Info(ctx, "stats").Result()
if err != nil {
Expand All @@ -81,6 +82,8 @@ func getEvictedClients(rdb *redis.Client, ctx context.Context) (int, error) {
}
return 0, fmt.Errorf("evicted_clients not found")
}
=======
>>>>>>> 3ce53f66 (feat: support maxmemory-clients)

func TestMaxMemoryClientsLimits(t *testing.T) {
srv := util.StartServer(t, map[string]string{
Expand Down

0 comments on commit a3bf6eb

Please sign in to comment.