Skip to content

Latest commit

 

History

History
75 lines (45 loc) · 1.34 KB

README.md

File metadata and controls

75 lines (45 loc) · 1.34 KB

cs341-redis

Student should implement below

Server

Data Type

Command

Client

STDIN/STDOUT

See "Getting input from other programs" section in https://redis.io/topics/rediscli .

You don't need to implement inline command (e.g. redis-cli redis_command).

Options

  • -h: hostname
  • --raw: raw output mode (you don't need to implement no-raw mode)

Source Codes:

See src/README.md.

Testing

We use Docker for testing. Install Docker before testing.

Build Docker Container Image

$ ./scripts/build-container.sh

Test Server

$ ./scripts/test.sh

Test Real Redis Server

$ SERVER_IMAGE=redis ./scripts/test.sh

Test Client

$ SERVER_IMAGE=redis CLIENT_IMAGE=student-redis ./scripts/test.sh

Test Real Redis Client

$ SERVER_IMAGE=redis CLIENT_IMAGE=redis ./scripts/test.sh